Skip to content

Commit

Permalink
Fix table scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjhanson committed Feb 7, 2024
1 parent 609ba56 commit 7fc908b
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions src/web/assets/cp/src/css/_cp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1016,27 +1016,13 @@ li.breadcrumb-toggle-wrapper {
}

#content-container {
flex: 1;

#main-content:not(.has-sidebar):not(.has-details) & {
width: 100%;
max-width: 100%;
}

#main-content.has-sidebar & {
width: calc(100% - #{$sidebarWidth - 24});
max-width: calc(100% - #{$sidebarWidth - 24});
}

#main-content.has-details & {
width: calc(100% - #{$detailsWidth} - var(--m));
max-width: calc(100% - #{$detailsWidth} - var(--m));
}

#main-content.has-sidebar.has-details {
width: calc(100% - #{$sidebarWidth} - #{$detailsWidth} - 38px);
max-width: calc(100% - #{$sidebarWidth} - #{$detailsWidth} - 38px);
}
flex: 1 1 auto;
/*
Admittedly I'm not totally sure why this is necessary, but it seems to be.
We have to give #content-container some kind of "hard" width for it to properly
clip the content when table cells are long.
*/
width: 400px;
}

#content-heading {
Expand Down

0 comments on commit 7fc908b

Please sign in to comment.