style: fix left padding in serer list

main
Josue 4 years ago committed by Tsu-ba-me
parent f52669160c
commit 434fdd38bc
  1. 12
      striker-ui/components/Servers.tsx

@ -27,8 +27,8 @@ const useStyles = makeStyles((theme) => ({
}, },
paddingLeft: 0, paddingLeft: 0,
}, },
noPaddingLeft: { headerPadding: {
paddingLeft: 0, paddingLeft: '.3em',
}, },
})); }));
@ -54,7 +54,9 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => {
); );
return ( return (
<Panel> <Panel>
<HeaderText text="Servers" /> <div className={classes.headerPadding}>
<HeaderText text="Servers" />
</div>
<Box className={classes.root}> <Box className={classes.root}>
<List component="nav"> <List component="nav">
{data && {data &&
@ -67,12 +69,12 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => {
key={server.server_uuid} key={server.server_uuid}
> >
<Box display="flex" flexDirection="row" width="100%"> <Box display="flex" flexDirection="row" width="100%">
<Box p={1} className={classes.noPaddingLeft}> <Box p={1}>
<Decorator <Decorator
colour={selectDecorator(server.server_state)} colour={selectDecorator(server.server_state)}
/> />
</Box> </Box>
<Box p={1} flexGrow={1} className={classes.noPaddingLeft}> <Box p={1} flexGrow={1}>
<BodyText text={server.server_name} /> <BodyText text={server.server_name} />
<BodyText <BodyText
text={ text={

Loading…
Cancel
Save