feat: Folder column size adjustment (#384)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user