Skip to content

Commit eff24eb

Browse files
committed
fix: restore attached panel scrolling for plugins
1 parent 604c96d commit eff24eb

3 files changed

Lines changed: 36 additions & 0 deletions

File tree

packages/devtools-a11y/src/core/styles/styles.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ function createA11yPanelStyles(theme: TanStackDevtoolsTheme) {
6464

6565
root: css`
6666
height: 100%;
67+
min-height: 0;
6768
display: flex;
6869
flex-direction: column;
6970
overflow: hidden;
@@ -168,6 +169,7 @@ function createA11yPanelStyles(theme: TanStackDevtoolsTheme) {
168169

169170
content: css`
170171
flex: 1;
172+
min-height: 0;
171173
overflow-y: auto;
172174
padding: 16px;
173175
`,

packages/devtools-ui/src/styles/use-styles.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,10 @@ const stylesFactory = (theme: TanStackDevtoolsTheme) => {
677677
},
678678
mainPanel: {
679679
panel: (withPadding: boolean) => css`
680+
display: flex;
681+
flex-direction: column;
682+
min-width: 0;
683+
min-height: 0;
680684
padding: ${withPadding ? tokens.size[3] : 0};
681685
background: ${t(colors.gray[50], colors.darkGray[700])};
682686
overflow-y: auto;

packages/devtools/src/styles/use-styles.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ const stylesFactory = (theme: DevtoolsStore['settings']['theme']) => {
256256
},
257257
devtoolsPanel: css`
258258
display: flex;
259+
min-width: 0;
260+
min-height: 0;
259261
font-size: ${fontSize.sm};
260262
font-family: ${fontFamily.sans};
261263
background-color: ${t(colors.white, colors.darkGray[700])};
@@ -429,12 +431,21 @@ const stylesFactory = (theme: DevtoolsStore['settings']['theme']) => {
429431
`,
430432
tabContent: css`
431433
transition: all 0.2s ease-in-out;
434+
display: flex;
435+
flex: 1 1 auto;
436+
flex-direction: column;
437+
min-width: 0;
438+
min-height: 0;
439+
overflow: hidden;
432440
width: 100%;
433441
height: 100%;
434442
`,
435443
pluginsTabPanel: css`
436444
display: flex;
445+
flex: 1 1 auto;
437446
flex-direction: row;
447+
min-width: 0;
448+
min-height: 0;
438449
width: 100%;
439450
height: 100%;
440451
overflow: hidden;
@@ -503,9 +514,28 @@ const stylesFactory = (theme: DevtoolsStore['settings']['theme']) => {
503514
}
504515
`,
505516
pluginsTabContent: css`
517+
display: flex;
518+
flex-direction: column;
519+
flex: 1 1 auto;
520+
min-width: 0;
521+
min-height: 0;
522+
overflow: hidden;
506523
width: 100%;
507524
height: 100%;
508525
526+
& > * {
527+
flex: 1 1 auto;
528+
min-width: 0;
529+
min-height: 0;
530+
height: 100%;
531+
}
532+
533+
& > * > * {
534+
min-width: 0;
535+
min-height: 0;
536+
height: 100%;
537+
}
538+
509539
&:not(:last-child) {
510540
border-right: 5px solid ${t(colors.purple[200], colors.purple[800])};
511541
}

0 commit comments

Comments
 (0)