Skip to content

Commit 5fa22e0

Browse files
committed
style: fixed pane with scrollable session tabs
1 parent c3a5e50 commit 5fa22e0

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

apps/desktop/src/App.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
--sidebar-width: 360px;
33
display: grid;
44
grid-template-columns: clamp(320px, var(--sidebar-width), 80%) 1fr;
5+
grid-template-rows: minmax(0, 1fr);
56
height: 100vh;
67
position: relative;
8+
overflow: hidden;
79
}
810

911
.bootScreen {
@@ -19,7 +21,9 @@
1921
position: relative;
2022
min-width: 0;
2123
height: 100%;
24+
min-height: 0;
2225
display: flex;
26+
overflow: hidden;
2327
}
2428

2529
.sidebarResizeHandle {

apps/desktop/src/components/MainPane/MainPane.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
flex-direction: column;
44
gap: 12px;
55
padding: 24px;
6+
height: 100%;
7+
min-height: 0;
68
overflow: hidden;
79
position: relative;
810
background: var(--bg);
@@ -47,6 +49,7 @@
4749
display: flex;
4850
flex-direction: column;
4951
flex: 1;
52+
min-height: 0;
5053
background: var(--surface);
5154
border: 1px solid var(--border);
5255
border-radius: 16px;
@@ -67,6 +70,7 @@
6770

6871
.tabBody {
6972
flex: 1;
73+
min-height: 0;
7074
position: relative;
7175
}
7276

apps/desktop/src/components/Sidebar/Sidebar.module.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.sidebar {
22
background: var(--surface);
33
border-right: 1px solid var(--border);
4-
padding: 24px 18px;
4+
--sidebar-edge-inset: 16px;
5+
padding: 0 18px;
56
display: flex;
67
flex-direction: column;
78
gap: 18px;
@@ -17,6 +18,10 @@
1718
display: flex;
1819
flex-direction: column;
1920
gap: 10px;
21+
flex-shrink: 0;
22+
margin: 0 -18px;
23+
padding: var(--sidebar-edge-inset) 18px 12px;
24+
border-bottom: 1px solid var(--border);
2025
}
2126

2227
.searchField {
@@ -59,6 +64,8 @@
5964
flex-direction: column;
6065
gap: 8px;
6166
overflow-y: auto;
67+
min-height: 0;
68+
overscroll-behavior: contain;
6269
padding-right: 4px;
6370
flex: 1;
6471
}
@@ -177,6 +184,10 @@
177184
align-items: center;
178185
justify-content: flex-start;
179186
gap: 12px;
187+
flex-shrink: 0;
188+
margin: 0 -18px;
189+
padding: 12px 18px var(--sidebar-edge-inset);
190+
border-top: 1px solid var(--border);
180191
}
181192

182193
.actionButton {

0 commit comments

Comments
 (0)