feat: Folder column size adjustment (#384)

This commit is contained in:
CY
2026-01-29 07:53:24 +08:00
committed by GitHub
parent 34135209d9
commit fe8983e212
3 changed files with 21 additions and 11 deletions

View File

@@ -132,7 +132,7 @@ export default function FoldersPane({ projectId, messages, locale }: Props) {
return (
<>
<div className="w-80 min-h-[calc(100vh-64px)] border-r-1 dark:border-neutral-700">
<div className="min-h-[calc(100vh-64px)] border-r-1 dark:border-neutral-700">
<Button
startContent={<Plus size={16} />}
size="sm"

View File

@@ -1,5 +1,6 @@
import { useTranslations } from 'next-intl';
import FoldersPane from './FoldersPane';
import ResizablePanes from '@/components/ResizablePane';
export default function FoldersLayout({
children,
@@ -25,9 +26,12 @@ export default function FoldersLayout({
};
return (
<div className="flex w-full">
<FoldersPane projectId={params.projectId} messages={messages} locale={params.locale} />
<div className="flex-grow w-full">{children}</div>
</div>
<ResizablePanes
minLeftWidth={15}
minRightWidth={40}
defaultLeftWidth={20}
leftPane={<FoldersPane projectId={params.projectId} messages={messages} locale={params.locale} />}
rightPane={children}
/>
);
}