Skip to content

Commit

Permalink
Fixed issue with object browser icons & long names (#389)
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Perez <[email protected]>
Co-authored-by: Daniel Valdivia <[email protected]>
  • Loading branch information
3 people authored Nov 12, 2020
1 parent 32898f0 commit 12bc526
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const commonIcon = {
backgroundRepeat: "no-repeat",
backgroundPosition: "center center",
width: 16,
minWidth: 16,
height: 40,
marginRight: 10,
};
Expand Down Expand Up @@ -90,6 +91,11 @@ const styles = (theme: Theme) =>
display: "flex",
alignItems: "center",
},
fileNameText: {
whiteSpace: "nowrap",
overflow: "hidden",
textOverflow: "ellipsis",
},
iconFolder: {
backgroundImage: "url(/images/ob_folder_clear.svg)",
...commonIcon,
Expand All @@ -107,10 +113,10 @@ const styles = (theme: Theme) =>
height: "calc(100vh - 280px)",
},
"@global": {
".rowElementRaw:hover .iconFileElm": {
".rowLine:hover .iconFileElm": {
backgroundImage: "url(/images/ob_file_filled.svg)",
},
".rowElementRaw:hover .iconFolderElm": {
".rowLine:hover .iconFolderElm": {
backgroundImage: "url(/images/ob_folder_filled.svg)",
},
},
Expand Down Expand Up @@ -374,7 +380,9 @@ const ListObjects = ({
return (
<div className={classes.fileName}>
<div className={icon} />
<span>{splitItem[splitItem.length - 1]}</span>
<span className={classes.fileNameText}>
{splitItem[splitItem.length - 1]}
</span>
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const styles = (theme: Theme) =>
marginRight: 10,
},
"@global": {
".rowElementRaw:hover .iconBucketElm": {
".rowLine:hover .iconBucketElm": {
backgroundImage: "url(/images/ob_bucket_filled.svg)",
},
},
Expand Down

0 comments on commit 12bc526

Please sign in to comment.