Skip to content

Commit d2c8669

Browse files
committed
update
1 parent 48e4b21 commit d2c8669

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

src/features/route-guide/ui/toc-container.module.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,20 +136,25 @@
136136
width: 100%;
137137
max-width: 100%;
138138
min-width: 0;
139+
min-height: 0;
139140
text-align: center;
140141
display: flex;
141142
flex-direction: column;
142-
align-items: center;
143+
align-items: stretch;
143144
overflow: hidden;
144145
}
145146

146147
.tocScroll {
148+
/* min-height: 0 lets the flex item honor max-height so overflow-y scrolls on small screens */
149+
min-height: 0;
147150
max-height: var(--toc-scroll-max-height-mobile, min(45vh, 280px));
148151
width: 100%;
149152
max-width: 100%;
150153
min-width: 0;
151154
display: flex;
152-
justify-content: center;
155+
flex-direction: column;
156+
align-items: stretch;
157+
justify-content: flex-start;
153158
overflow-y: auto;
154159
overflow-x: hidden;
155160
-webkit-overflow-scrolling: touch;

src/features/route-guide/ui/toc-tree.module.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@
4242
width: 100%;
4343
max-width: 100%;
4444
min-width: 0;
45+
min-height: 0;
46+
flex: 0 0 auto;
4547
box-sizing: border-box;
46-
overflow: hidden;
48+
overflow-x: hidden;
49+
overflow-y: visible;
4750
}
4851
}
4952

0 commit comments

Comments
 (0)