Skip to content

Commit a7189d2

Browse files
authored
fix(ui): restore scrollbar in skill workshop board mode (#108197)
The flex height constraint chain was broken at three points in the board-mode layout, preventing both the proposal queue and detail body from scrolling: 1. .sw-hub-panel > .skill-workshop used a > child selector but .skill-workshop is nested inside an inner wa-tab-panel wrapper, so the rule never matched. Switched to a descendant selector. 2. #skill-workshop-mode-panel (the inner tab panel) had no flex styles, defaulting to display:block which cannot pass through flex height constraints. Added explicit flex container styles. 3. The wa-tab-panel shadow-DOM part(base) wrapper also needs flex overrides to fill the host height. Added part selectors with display:flex, flex:1, min-height:0, and width:100% to preserve full-width block behavior for non-flex children like the history scan banner. Also added flex-shrink:0 to .sw-history so the banner does not collapse when .skill-workshop receives a definite height. Fixes #108196
1 parent 7bf6bf3 commit a7189d2

1 file changed

Lines changed: 25 additions & 5 deletions

File tree

‎ui/src/styles/skill-workshop.css‎

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,28 @@
4343
margin-top: var(--space-4);
4444
}
4545

46-
/* Replaces the old .content--skill-workshop > .skill-workshop rule: the board
47-
nests inside the hub tabpanel now, and dropping min-height: 0 at either
48-
level would let tall boards grow the page instead of scrolling internally. */
49-
.sw-hub-panel > .skill-workshop {
46+
/* The board nests inside the hub tabpanel, which may wrap it in an inner
47+
mode-switching tab panel. The inner tab panel must be a flex container so
48+
the height constraint passes through to .skill-workshop. Shadow-DOM part
49+
overrides make the tab panel's internal wrapper a flex column that fills
50+
the host; width:100% preserves the full-width block behavior. */
51+
#skill-workshop-mode-panel {
52+
display: flex;
53+
flex-direction: column;
54+
flex: 1 1 auto;
55+
min-height: 0;
56+
}
57+
58+
.sw-hub-panel::part(base),
59+
#skill-workshop-mode-panel::part(base) {
60+
display: flex;
61+
flex-direction: column;
62+
flex: 1 1 auto;
63+
min-height: 0;
64+
width: 100%;
65+
}
66+
67+
.sw-hub-panel .skill-workshop {
5068
flex: 1 1 auto;
5169
min-height: 0;
5270
}
@@ -1025,7 +1043,8 @@
10251043
}
10261044
}
10271045

1028-
/* Progressive history review */
1046+
/* Progressive history review — flex-shrink:0 keeps the banner from
1047+
collapsing when the board flex container is height-constrained. */
10291048
.sw-history {
10301049
position: relative;
10311050
display: grid;
@@ -1035,6 +1054,7 @@
10351054
margin: 18px 0 22px;
10361055
padding: 24px 26px;
10371056
overflow: hidden;
1057+
flex-shrink: 0;
10381058
border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
10391059
border-radius: 18px;
10401060
background:

0 commit comments

Comments
 (0)