From 3a466ad2a17e88623e2acc8e59a2573258adeeeb Mon Sep 17 00:00:00 2001 From: boojack Date: Wed, 8 Mar 2023 21:56:28 +0800 Subject: [PATCH] chore: update style of home sidebar (#1311) --- web/src/components/HomeSidebar.tsx | 10 +-- web/src/components/ShortcutList.tsx | 55 ++++++++++------ web/src/components/TagList.tsx | 38 +++++++---- web/src/components/UsageHeatMap.tsx | 2 +- web/src/less/shortcut-list.less | 98 ----------------------------- web/src/less/tag-list.less | 60 ------------------ web/src/less/usage-heat-map.less | 11 ++-- 7 files changed, 71 insertions(+), 203 deletions(-) delete mode 100644 web/src/less/shortcut-list.less delete mode 100644 web/src/less/tag-list.less diff --git a/web/src/components/HomeSidebar.tsx b/web/src/components/HomeSidebar.tsx index 20297986..2d8704d1 100644 --- a/web/src/components/HomeSidebar.tsx +++ b/web/src/components/HomeSidebar.tsx @@ -12,7 +12,7 @@ const HomeSidebar = () => { useEffect(() => { const handleWindowResize = () => { - if (window.innerWidth < resolution.sm) { + if (window.innerWidth < resolution.md) { layoutStore.setHomeSidebarStatus(false); } else { layoutStore.setHomeSidebarStatus(true); @@ -24,22 +24,22 @@ const HomeSidebar = () => { return (
layoutStore.setHomeSidebarStatus(false)} >