Browser Title

This commit is contained in:
Zimeng Xiong
2025-11-22 09:29:46 -08:00
parent e87987a0a3
commit 0c843eb37d
3 changed files with 28 additions and 1 deletions
+1 -1
View File
@@ -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>
+20
View File
@@ -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

+7
View File
@@ -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());