Fixed issue with object browser icons & long names (#389)
Co-authored-by: Benjamin Perez <benjamin@bexsoft.net> Co-authored-by: Daniel Valdivia <hola@danielvaldivia.com>
This commit is contained in:
@@ -52,6 +52,7 @@ const commonIcon = {
|
|||||||
backgroundRepeat: "no-repeat",
|
backgroundRepeat: "no-repeat",
|
||||||
backgroundPosition: "center center",
|
backgroundPosition: "center center",
|
||||||
width: 16,
|
width: 16,
|
||||||
|
minWidth: 16,
|
||||||
height: 40,
|
height: 40,
|
||||||
marginRight: 10,
|
marginRight: 10,
|
||||||
};
|
};
|
||||||
@@ -90,6 +91,11 @@ const styles = (theme: Theme) =>
|
|||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
},
|
},
|
||||||
|
fileNameText: {
|
||||||
|
whiteSpace: "nowrap",
|
||||||
|
overflow: "hidden",
|
||||||
|
textOverflow: "ellipsis",
|
||||||
|
},
|
||||||
iconFolder: {
|
iconFolder: {
|
||||||
backgroundImage: "url(/images/ob_folder_clear.svg)",
|
backgroundImage: "url(/images/ob_folder_clear.svg)",
|
||||||
...commonIcon,
|
...commonIcon,
|
||||||
@@ -107,10 +113,10 @@ const styles = (theme: Theme) =>
|
|||||||
height: "calc(100vh - 280px)",
|
height: "calc(100vh - 280px)",
|
||||||
},
|
},
|
||||||
"@global": {
|
"@global": {
|
||||||
".rowElementRaw:hover .iconFileElm": {
|
".rowLine:hover .iconFileElm": {
|
||||||
backgroundImage: "url(/images/ob_file_filled.svg)",
|
backgroundImage: "url(/images/ob_file_filled.svg)",
|
||||||
},
|
},
|
||||||
".rowElementRaw:hover .iconFolderElm": {
|
".rowLine:hover .iconFolderElm": {
|
||||||
backgroundImage: "url(/images/ob_folder_filled.svg)",
|
backgroundImage: "url(/images/ob_folder_filled.svg)",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -374,7 +380,9 @@ const ListObjects = ({
|
|||||||
return (
|
return (
|
||||||
<div className={classes.fileName}>
|
<div className={classes.fileName}>
|
||||||
<div className={icon} />
|
<div className={icon} />
|
||||||
<span>{splitItem[splitItem.length - 1]}</span>
|
<span className={classes.fileNameText}>
|
||||||
|
{splitItem[splitItem.length - 1]}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ const styles = (theme: Theme) =>
|
|||||||
marginRight: 10,
|
marginRight: 10,
|
||||||
},
|
},
|
||||||
"@global": {
|
"@global": {
|
||||||
".rowElementRaw:hover .iconBucketElm": {
|
".rowLine:hover .iconBucketElm": {
|
||||||
backgroundImage: "url(/images/ob_bucket_filled.svg)",
|
backgroundImage: "url(/images/ob_bucket_filled.svg)",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user