mirror of
https://github.com/openziti/zrok.git
synced 2024-11-07 16:54:23 +01:00
responsive layout improvements (#221)
This commit is contained in:
parent
c84b2a39e7
commit
9a12ab4661
@ -14,7 +14,7 @@ const AccessCard = (props) => {
|
||||
<p>
|
||||
{props.access.token} → {props.access.bindAddress}
|
||||
</p>
|
||||
<Button variant="outlined" onClick={deleteHandler}><DeleteIcon /></Button>
|
||||
<Button variant="contained" onClick={deleteHandler}><DeleteIcon /></Button>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {AppBar, Button, IconButton, Toolbar, Typography} from "@mui/material";
|
||||
import {AppBar, Box, Button, Grid2, IconButton, Toolbar, Typography} from "@mui/material";
|
||||
import MenuIcon from "@mui/icons-material/Menu";
|
||||
import LanIcon from "@mui/icons-material/Lan";
|
||||
import ShareIcon from "@mui/icons-material/Share";
|
||||
@ -16,11 +16,17 @@ const NavBar = (props) => {
|
||||
>
|
||||
<MenuIcon/>
|
||||
</IconButton>
|
||||
<Typography variant="p" component={"div"} sx={{flexGrow: 1}}>
|
||||
<Typography variant="p" component={"div"} sx={{ flexGrow: 1 }} display={{ xs: "none", sm: "block" }}>
|
||||
zrok Agent { props.version !== "" ? " | " + props.version : ""}
|
||||
</Typography>
|
||||
<Button color="inherit" onClick={props.shareClick}><ShareIcon /></Button>
|
||||
<Button color="inherit" onClick={props.accessClick}><LanIcon /></Button>
|
||||
<Grid2 container sx={{ flexGrow: 1 }}>
|
||||
<Grid2 display="flex" justifyContent="right" size="grow">
|
||||
<Button color="inherit" onClick={props.shareClick}><ShareIcon /></Button>
|
||||
</Grid2>
|
||||
<Grid2 display="flex" justifyContent="right">
|
||||
<Button color="inherit" onClick={props.accessClick}><LanIcon /></Button>
|
||||
</Grid2>
|
||||
</Grid2>
|
||||
</Toolbar>
|
||||
</AppBar>
|
||||
)
|
||||
|
@ -20,7 +20,7 @@ const ShareCard = (props) => {
|
||||
({props.share.shareMode}, {props.share.backendMode}) <br/>
|
||||
{props.share.backendEndpoint} → {frontends} <br/>
|
||||
</p>
|
||||
<Button variant="outlined" onClick={deleteHandler} ><DeleteIcon /></Button>
|
||||
<Button variant="contained" onClick={deleteHandler} ><DeleteIcon /></Button>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user