Fixed breadcrumbs container overflow in object browser (#1880)

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2022-04-20 22:38:23 -06:00
committed by GitHub
parent 3e13e6db98
commit 997052a872
3 changed files with 14 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ const GlobalCss = withStyles({
ul: {
paddingLeft:20,
listStyle: "none", /* Remove default bullets */
"& li::before": {
"& li::before:not(.Mui*)": {
content: '"■"',
color: "#2781B0",
fontSize: 20,
@@ -113,7 +113,7 @@ const GlobalCss = withStyles({
},
"& ul": {
listStyle: "none", /* Remove default bullets */
"& li::before": {
"& li::before:not(.Mui*)": {
content: '"○"',
color: "#2781B0",
fontSize: 20,

View File

@@ -1342,8 +1342,11 @@ const ListObjects = ({
resource={bucketName}
errorProps={{ disabled: true }}
>
<Grid item xs={12}>
<Grid item xs={12} className={classes.breadcrumbsContainer}>
<Grid
item
xs={12}
>
<Grid item xs={12} className={classes.breadcrumbsContainer} >
<BrowserBreadcrumbs
bucketName={bucketName}
internalPaths={pageTitle}

View File

@@ -411,9 +411,13 @@ export const objectBrowserCommon = {
textAlign: "left" as const,
marginLeft: 15,
marginRight: 10,
width: 0, // WA to avoid overflow if child elements in flexbox list.**
},
};
// ** According to W3 spec, default minimum values for flex width flex-grow is "auto" (https://drafts.csswg.org/css-flexbox/#min-size-auto). So in this case we need to enforce the use of an absolute width.
// "The preferred width of a box element child containing text content is currently the text without line breaks, leading to very unintuitive width and flex calculations → declare a width on a box element child with more than a few words (ever wonder why flexbox demos are all “1,2,3”?)"
export const selectorsCommon = {
multiSelectTable: {
height: 200,
@@ -1366,6 +1370,9 @@ export const detailsPanel: any = {
"&:last-of-type": {
borderBottom: 0,
},
"&::before": {
content: "' '",
},
},
},
};