Skip to content

Commit 92893cd

Browse files
authored
Merge pull request AmintaCCCP#30 from rootwhois/fix-sidebar-scoll
[fix]侧边栏支持独立滑动
2 parents 5fbaa0d + c62d32d commit 92893cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/CategorySidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const CategorySidebar: React.FC<CategorySidebarProps> = ({
102102

103103
return (
104104
<>
105-
<div className="w-64 bg-white dark:bg-gray-800 rounded-xl border border-gray-200 dark:border-gray-700 p-4 h-fit sticky top-24">
105+
<div className="w-64 bg-white dark:bg-gray-800 rounded-xl border border-gray-200 dark:border-gray-700 p-4 max-h-[calc(100vh-8rem)] sticky top-24 overflow-y-auto">
106106
<div className="flex items-center justify-between mb-4">
107107
<h3 className="text-lg font-semibold text-gray-900 dark:text-white">
108108
{t('应用分类', 'Categories')}

0 commit comments

Comments
 (0)