Skip to content

Commit

Permalink
Adjust paddings and text color.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewelinagr committed Jun 17, 2024
1 parent 260f0ae commit e65062e
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 8 deletions.
13 changes: 12 additions & 1 deletion projects/mercury/src/App.theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ const globalTheme = createTheme({
},
background: {
default: '#eef0eb'
},
text: {
primary: COLORS.fsBlueDark,
secondary: COLORS.fsBlueMedium
}
},
shape: {
borderRadius: 15
}
});

const scrollbarStyles = {
export const scrollbarStyles = {
'&::-webkit-scrollbar': {
width: '0.3em',
height: '0.3em'
Expand Down Expand Up @@ -226,6 +230,13 @@ export default createTheme({
...scrollbarStyles
}
}
},
MuiTablePagination: {
styleOverrides: {
root: {
...scrollbarStyles
}
}
}
}
});
3 changes: 2 additions & 1 deletion projects/mercury/src/collections/CollectionsPage.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const styles = () => ({
},
centralPanel: {
width: consts.MAIN_CONTENT_WIDTH,
maxHeight: consts.MAIN_CONTENT_MAX_HEIGHT
maxHeight: consts.MAIN_CONTENT_MAX_HEIGHT,
paddingLeft: 0
},
sidePanel: {
width: consts.SIDE_PANEL_WIDTH
Expand Down
3 changes: 2 additions & 1 deletion projects/mercury/src/layout/MainMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import {COLORS} from '../App.theme';
const styles = theme => ({
buttonStack: {
paddingLeft: 20,
paddingRight: 20
paddingRight: 20,
overflowY: 'auto'
},
buttonStackCollapsed: {
paddingLeft: 10,
Expand Down
2 changes: 1 addition & 1 deletion projects/mercury/src/layout/MenuDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const MenuDrawer = ({open, renderMenu, toggleMenuExpansion, onMouseEnter, onMous
<img src="/public/images/icon_white.png" alt="Fairspace" width="40" />
)}
</div>
<div onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>
<div className={classes.menu} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>
{renderMenu(open)}
</div>
<div className={open ? classes.toolbar : classes.toolbarCollapsed}>
Expand Down
6 changes: 6 additions & 0 deletions projects/mercury/src/layout/MenuDrawer.styles.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {scrollbarStyles} from '../App.theme';

const styles = theme => ({
drawerPaper: {
position: 'fixed',
Expand Down Expand Up @@ -60,6 +62,10 @@ const styles = theme => ({
position: 'absolute',
bottom: 50,
height: 100
},
menu: {
overflowY: 'auto',
...scrollbarStyles
}
});

Expand Down
3 changes: 1 addition & 2 deletions projects/mercury/src/metadata/views/MetadataView.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ const styles = theme => ({
centralPanel: {
overflowX: 'auto',
width: '100%',
overflowY: 'hidden',
maxHeight: 'calc(100vh - 150px)'
overflowY: 'hidden'
},
clearAllButtonContainer: {
textAlign: 'end'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const styles = theme => ({
},
tableContents: {
minHeight: '200px',
maxHeight: 'calc(100vh - 310px)',
maxHeight: 'calc(100vh - 250px)',
overflowY: 'auto',
overflowX: 'auto',
'& .MuiTableCell-stickyHeader': {
Expand Down
2 changes: 1 addition & 1 deletion projects/mercury/src/status/StatusAlert.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const styles = theme => ({
border: `1px solid ${theme.palette.error.main}`
},
snackbarRoot: {
paddingTop: 50
paddingTop: 0
}
});

Expand Down

0 comments on commit e65062e

Please sign in to comment.