Skip to content

Commit c0db0c6

Browse files
committed
fix: adjust default sizes of ResizablePanels in Layout component for improved usability
This commit modifies the default sizes of the ResizablePanels in the Layout component's right panel, enhancing the visibility and usability of the NoteList and NoteEditor. The changes ensure a better user experience when interacting with the note-taking interface.
1 parent 74c18c7 commit c0db0c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/layout/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,20 +94,20 @@ export function Layout() {
9494

9595
{/* Right Panel - Editor or Notepad */}
9696
{rightView && (
97-
<Panel defaultSize={mainView ? 30 : 100} minSize={20} className="overflow-hidden">
97+
<Panel defaultSize={mainView ? 70 : 100} minSize={20} className="overflow-hidden">
9898
{rightView === "notepad" ? (
9999
<ResizablePanelGroup direction="horizontal" className="h-full w-full overflow-hidden">
100100
{showNoteList && (
101101
<>
102-
<ResizablePanel defaultSize={25} minSize={15} maxSize={40} className="min-w-0 overflow-hidden">
102+
<ResizablePanel id="notepad-list" order={1} defaultSize={30} minSize={0} className="min-w-0 overflow-hidden">
103103
<div className="h-full w-full overflow-auto">
104104
<NoteList />
105105
</div>
106106
</ResizablePanel>
107107
<ResizableHandle withHandle />
108108
</>
109109
)}
110-
<ResizablePanel defaultSize={showNoteList ? 75 : 100} minSize={50} className="min-w-0 overflow-hidden">
110+
<ResizablePanel id="notepad-editor" order={showNoteList ? 2 : 1} defaultSize={showNoteList ? 70 : 100} minSize={50} className="min-w-0 overflow-hidden">
111111
<NoteEditor />
112112
</ResizablePanel>
113113
</ResizablePanelGroup>

0 commit comments

Comments
 (0)