Skip to content

Commit

Permalink
fix: small ui issues on the progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Apr 15, 2024
1 parent 0ff23c2 commit 7c3db90
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pages/StorageScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,23 @@ const StorageBarIndicator = styled('progress')(({ theme }) => ({
/* Get rid of default border in Firefox. */
border: 'none',

// border radius are the same as the inside element but prevent the bar from bleeding out
overflow: 'hidden',
borderRadius: theme.spacing(1),

// apply some height to it
height: theme.spacing(4),

'&::-webkit-progress-bar': {
backgroundColor: '#eee',
// this border radius is necessary to maintain the shadow around the corners
borderRadius: theme.spacing(1),
boxShadow: '0 2px 5px rgba(0, 0, 0, 0.25) inset',
},
'&::-webkit-progress-value': {
backgroundColor: theme.palette.primary.main,
borderRadius: theme.spacing(1, 0, 0, 1),
// this border radius is not necessary if we keep the border radius and overflow hidden on the real progress element
// borderRadius: theme.spacing(1, 0, 0, 1),
},
'&::-moz-progress-bar': {
backgroundColor: theme.palette.primary.main,
Expand Down

0 comments on commit 7c3db90

Please sign in to comment.