Skip to content

Commit 8167b3f

Browse files
Yerazeclaude
andauthored
fix: reclaim full space when sidebar collapsed on Messages and Map (#2368)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fd22e57 commit 8167b3f

File tree

1 file changed

+26
-12
lines changed

1 file changed

+26
-12
lines changed

src/styles/nodes.css

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@
3737
}
3838

3939
.nodes-anchored-sidebar.collapsed {
40-
width: 48px !important;
41-
min-width: 48px;
42-
max-width: 48px;
40+
width: 0 !important;
41+
min-width: 0;
42+
max-width: 0;
43+
overflow: visible;
4344
}
4445

4546
/* Resize handle on right edge of sidebar */
@@ -122,6 +123,14 @@
122123
border-bottom: none;
123124
box-shadow: none;
124125
backdrop-filter: none;
126+
transition: width 0.3s ease;
127+
}
128+
129+
.messages-sidebar.collapsed {
130+
width: 0 !important;
131+
min-width: 0;
132+
max-width: 0;
133+
overflow: visible;
125134
}
126135

127136
.messages-split-view {
@@ -554,16 +563,20 @@
554563
}
555564

556565
.nodes-sidebar.collapsed .sidebar-header {
557-
display: flex;
558-
align-items: center;
559-
justify-content: center;
560-
padding: 0.5rem;
566+
position: absolute;
567+
top: 8px;
568+
left: 8px;
569+
padding: 0;
561570
border-bottom: none;
571+
background: transparent;
572+
z-index: 1000;
573+
width: auto;
574+
min-height: auto;
562575
}
563576

564577
.nodes-sidebar.collapsed .collapse-nodes-btn {
565578
position: static;
566-
margin: auto;
579+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
567580
}
568581

569582
.nodes-sidebar.collapsed .sidebar-header h3 {
@@ -1250,14 +1263,15 @@
12501263
height: 100%;
12511264
}
12521265

1253-
/* When collapsed on mobile, show as small strip */
1266+
/* When collapsed on mobile, reclaim all space */
12541267
.nodes-anchored-sidebar.collapsed {
12551268
position: static;
1256-
width: 40px;
1257-
min-width: 40px;
1258-
max-width: 40px;
1269+
width: 0 !important;
1270+
min-width: 0;
1271+
max-width: 0;
12591272
max-height: 100%;
12601273
padding: 0;
1274+
overflow: visible;
12611275
}
12621276

12631277
.nodes-sidebar.collapsed .sidebar-header {

0 commit comments

Comments
 (0)