From cf65f0867bff50f5f282f6c4dd3d01f4b1c06ac7 Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 4 Feb 2026 20:24:54 +0800 Subject: [PATCH] refactor: remove hide-scrollbar utility Removed the hide-scrollbar CSS class and all its usages throughout the codebase. Hiding scrollbars can hurt UX by making it unclear when content is scrollable. Changes: - Removed hide-scrollbar CSS definition from index.css - Removed hide-scrollbar class from Navigation component (2 instances) - Removed hide-scrollbar class from MemoDetailSidebar (2 instances) - Removed hide-scrollbar class from TagsSection - Removed hide-scrollbar class from ShortcutsSection Components now use standard browser scrollbar behavior, which provides better visual feedback to users about scrollable content. Modern browsers already handle scrollbar appearance elegantly. --- web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx | 6 ++---- web/src/components/MemoExplorer/ShortcutsSection.tsx | 2 +- web/src/components/MemoExplorer/TagsSection.tsx | 2 +- web/src/components/Navigation.tsx | 4 ++-- web/src/components/StatisticsView/MonthNavigator.tsx | 2 +- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx b/web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx index 4a3822afa..f9659969a 100644 --- a/web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx +++ b/web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx @@ -42,10 +42,8 @@ const MemoDetailSidebar = ({ memo, className, parentPage }: Props) => { }; return ( -