Browse Source

Improved external link module

maziggy 5 months ago
parent
commit
38cc31d64c
3 changed files with 5 additions and 2 deletions
  1. 4 1
      frontend/src/pages/ExternalLinkPage.tsx
  2. 0 0
      static/assets/index-BiD82fpM.js
  3. 1 1
      static/index.html

+ 4 - 1
frontend/src/pages/ExternalLinkPage.tsx

@@ -2,9 +2,11 @@ import { useParams } from 'react-router-dom';
 import { useQuery } from '@tanstack/react-query';
 import { Loader2, AlertTriangle } from 'lucide-react';
 import { api } from '../api/client';
+import { useTheme } from '../contexts/ThemeContext';
 
 export function ExternalLinkPage() {
   const { id } = useParams<{ id: string }>();
+  const { theme } = useTheme();
 
   const { data: link, isLoading, error } = useQuery({
     queryKey: ['external-link', id],
@@ -32,7 +34,8 @@ export function ExternalLinkPage() {
   return (
     <iframe
       src={link.url}
-      className="h-full w-full border-0 bg-white"
+      className="h-full w-full border-0"
+      style={{ colorScheme: theme }}
       title={link.name}
       sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"
     />

File diff suppressed because it is too large
+ 0 - 0
static/assets/index-BiD82fpM.js


+ 1 - 1
static/index.html

@@ -7,7 +7,7 @@
     <link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png" />
     <link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png" />
     <link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png" />
-    <script type="module" crossorigin src="/assets/index-CJcx4PLI.js"></script>
+    <script type="module" crossorigin src="/assets/index-BiD82fpM.js"></script>
     <link rel="stylesheet" crossorigin href="/assets/index-BYZOEJWU.css">
   </head>
   <body>

Some files were not shown because too many files changed in this diff