From 7b9379732ea73f19bf3b81ad844bb0b6a243aedb Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Fri, 2 Sep 2022 22:07:08 +0300 Subject: [PATCH] significantly improve unread system --- frontend/public/global.css | 2 +- frontend/src/components/Sidebar.svelte | 45 ++++++++++++++------ frontend/src/stores.js | 58 ++++++++++++++++++-------- 3 files changed, 74 insertions(+), 31 deletions(-) diff --git a/frontend/public/global.css b/frontend/public/global.css index d7423a7..db279dd 100644 --- a/frontend/public/global.css +++ b/frontend/public/global.css @@ -348,7 +348,7 @@ body { text-overflow: ellipsis; } -.sidebar-button div { +.sidebar-button .sidebar-button-icon { display: inline; flex-shrink: 0; diff --git a/frontend/src/components/Sidebar.svelte b/frontend/src/components/Sidebar.svelte index 6f4d97d..c0edb87 100644 --- a/frontend/src/components/Sidebar.svelte +++ b/frontend/src/components/Sidebar.svelte @@ -2,7 +2,7 @@ import { HashIcon, PlusIcon, MoreVerticalIcon, SettingsIcon, CloudIcon } from "svelte-feather-icons"; import { quadInOut } from "svelte/easing"; import { maybeFly, maybeFlyIf } from "../animations"; - import { channels, gatewayStatus, overlayStore, selectedChannel, showSidebar, smallViewport, userInfoStore } from "../stores"; + import { channels, gatewayStatus, overlayStore, selectedChannel, showSidebar, smallViewport, userInfoStore, unreadStore } from "../stores"; import UserTopBar from "./UserTopBar.svelte"; const selectChannel = (channel) => { @@ -19,30 +19,32 @@