refac: styling

This commit is contained in:
Timothy Jaeryang Baek committed 2025-01-13 21:13:16 -08:00
1 parent ac5bdac161
commit c4486b4a77
6 files changed
+22 -6

No files matched your search

+10 -1
View File
@@ -358,6 +358,15 @@
showSidebar.set(!$mobile ? localStorage.sidebar === 'true' : false);
showSidebar.subscribe((value) => {
localStorage.sidebar = value;
// nav element is not available on the first render
const navElement = document.getElementsByTagName('nav')[0];
if (!value) {
navElement.style['-webkit-app-region'] = 'drag';
} else {
navElement.style['-webkit-app-region'] = 'no-drag';
}
});
await initChannels();
@@ -479,7 +488,7 @@
<a
id="sidebar-new-chat-button"
class="flex justify-between items-center flex-1 rounded-lg px-2 py-1 h-full text-right hover:bg-gray-100 dark:hover:bg-gray-900 transition"
class="flex justify-between items-center flex-1 rounded-lg px-2 py-1 h-full text-right hover:bg-gray-100 dark:hover:bg-gray-900 transition no-drag-region"
href="/"
draggable="false"
on:click={async () => {