diff --git a/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/IconWithLabel.tsx b/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/IconWithLabel.tsx index 1c1cb1c85..c334d5545 100644 --- a/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/IconWithLabel.tsx +++ b/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/IconWithLabel.tsx @@ -3,6 +3,12 @@ import createStyles from "@mui/styles/createStyles"; import withStyles from "@mui/styles/withStyles"; import { Theme } from "@mui/material/styles"; +interface IIconWithLabel { + classes: any; + icon: JSX.Element; + strings: string[]; +} + const styles = (theme: Theme) => createStyles({ fileName: { @@ -12,6 +18,8 @@ const styles = (theme: Theme) => width: 16, height: 16, marginRight: 4, + minWidth: 16, + minHeight: 16, }, }, fileNameText: { @@ -21,16 +29,12 @@ const styles = (theme: Theme) => }, }); -const IconWithLabel = (props: { - classes: any; - icon: JSX.Element; - strings: string[]; -}) => { +const IconWithLabel = ({ classes, icon, strings }: IIconWithLabel) => { return ( -
- {props.icon} - - {props.strings[props.strings.length - 1]} +
+ {icon} + + {strings[strings.length - 1]}
); diff --git a/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/ObjectDetailPanel.tsx b/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/ObjectDetailPanel.tsx index 205675d19..4c2abd375 100644 --- a/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/ObjectDetailPanel.tsx +++ b/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/ObjectDetailPanel.tsx @@ -92,6 +92,12 @@ const styles = () => ObjectDetailsTitle: { display: "flex", alignItems: "center", + "& .min-icon": { + width: 26, + height: 26, + minWidth: 26, + minHeight: 26, + } }, objectNameContainer: { whiteSpace: "nowrap", @@ -627,7 +633,7 @@ const ObjectDetailPanel = ({ Name:
- {objectName} +
{objectName}
{selectedVersion !== "" && (