Skip to content

Commit

Permalink
[dashboard] fix overlapping text in percentage bar (ray-project#44307)
Browse files Browse the repository at this point in the history
In Firefox, the text in the percentage bar is overlapping. For example, if there are multiple GPUs, the entries in the GRAM column are overlapping.

Signed-off-by: bhuang <[email protected]>
  • Loading branch information
brycehuang30 authored Mar 26, 2024
1 parent ba99fda commit dcd81a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dashboard/client/src/components/PercentageBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const useStyle = makeStyles((theme) => ({
position: "relative",
boxSizing: "content-box",
borderRadius: 4,
flexGrow: 1,
},
displayBar: {
background: theme.palette.background.paper,
Expand All @@ -31,6 +32,7 @@ const useStyle = makeStyles((theme) => ({
color: theme.palette.text.primary,
width: "100%",
textAlign: "center",
whiteSpace: "nowrap",
},
}));

Expand Down
2 changes: 1 addition & 1 deletion dashboard/client/src/pages/node/GRAMColumn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const GRAMEntry: React.FC<GRAMEntryProps> = ({
return (
<Box display="flex" flexWrap="nowrap" style={{ minWidth: GRAM_COL_WIDTH }}>
<Tooltip title={gpuName}>
<Box display="flex" flexWrap="nowrap">
<Box display="flex" flexWrap="nowrap" flexGrow={1}>
<RightPaddedTypography variant="body1">
[{slot}]:{" "}
</RightPaddedTypography>
Expand Down

0 comments on commit dcd81a9

Please sign in to comment.