Browser Title
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>ExcaliDash</title>
|
||||
</head>
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<style>
|
||||
.shadow { fill: black; }
|
||||
.box { fill: #4f46e5; stroke: black; }
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.shadow { fill: rgba(255, 255, 255, 0.2); }
|
||||
.box { fill: #262626; stroke: #404040; }
|
||||
}
|
||||
</style>
|
||||
<rect class="shadow" x="4" y="4" width="26" height="26" rx="6"/>
|
||||
<rect class="box" x="2" y="2" width="26" height="26" rx="6" stroke-width="2"/>
|
||||
<g transform="translate(7, 7)">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<rect width="7" height="7" x="3" y="3" rx="1" />
|
||||
<rect width="7" height="7" x="14" y="3" rx="1" />
|
||||
<rect width="7" height="7" x="14" y="14" rx="1" />
|
||||
<rect width="7" height="7" x="3" y="14" rx="1" />
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 910 B |
@@ -56,6 +56,13 @@ export const Editor: React.FC = () => {
|
||||
const [newName, setNewName] = useState('');
|
||||
const [initialData, setInitialData] = useState<any>(null);
|
||||
const [isSceneLoading, setIsSceneLoading] = useState(true);
|
||||
|
||||
useEffect(() => {
|
||||
document.title = `${drawingName} - ExcaliDash`;
|
||||
return () => {
|
||||
document.title = 'ExcaliDash';
|
||||
};
|
||||
}, [drawingName]);
|
||||
|
||||
const [peers, setPeers] = useState<Peer[]>([]);
|
||||
const [me] = useState(getUserIdentity());
|
||||
|
||||
Reference in New Issue
Block a user