fix(ui): update AboutDialog styles and improve layout
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -33,18 +33,12 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
overflowWrap: 'break-word',
|
overflowWrap: 'break-word',
|
||||||
},
|
},
|
||||||
envVarColumn: {
|
envVarColumn: {
|
||||||
maxWidth: '200px',
|
maxWidth: '250px',
|
||||||
width: '200px',
|
width: '250px',
|
||||||
fontFamily: 'monospace',
|
fontFamily: 'monospace',
|
||||||
wordWrap: 'break-word',
|
wordWrap: 'break-word',
|
||||||
overflowWrap: 'break-word',
|
overflowWrap: 'break-word',
|
||||||
},
|
},
|
||||||
configFileValue: {
|
|
||||||
maxWidth: '300px',
|
|
||||||
width: '300px',
|
|
||||||
fontFamily: 'monospace',
|
|
||||||
wordBreak: 'break-all',
|
|
||||||
},
|
|
||||||
copyButton: {
|
copyButton: {
|
||||||
marginBottom: theme.spacing(2),
|
marginBottom: theme.spacing(2),
|
||||||
marginTop: theme.spacing(1),
|
marginTop: theme.spacing(1),
|
||||||
@@ -66,6 +60,12 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
maxHeight: '60vh',
|
maxHeight: '60vh',
|
||||||
overflow: 'auto',
|
overflow: 'auto',
|
||||||
},
|
},
|
||||||
|
devFlagsTitle: {
|
||||||
|
fontWeight: 600,
|
||||||
|
},
|
||||||
|
expandableDialog: {
|
||||||
|
transition: 'max-width 300ms ease',
|
||||||
|
},
|
||||||
}))
|
}))
|
||||||
|
|
||||||
const links = {
|
const links = {
|
||||||
@@ -291,9 +291,7 @@ const ConfigTabContent = ({ configData }) => {
|
|||||||
<TableCell align="left" className={classes.envVarColumn}>
|
<TableCell align="left" className={classes.envVarColumn}>
|
||||||
ND_CONFIGFILE
|
ND_CONFIGFILE
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell align="left" className={classes.configFileValue}>
|
<TableCell align="left">{configData.configFile}</TableCell>
|
||||||
{configData.configFile}
|
|
||||||
</TableCell>
|
|
||||||
</TableRow>
|
</TableRow>
|
||||||
)}
|
)}
|
||||||
{regularConfigs.map(({ key, envVar, value }) => (
|
{regularConfigs.map(({ key, envVar, value }) => (
|
||||||
@@ -318,7 +316,7 @@ const ConfigTabContent = ({ configData }) => {
|
|||||||
<Typography
|
<Typography
|
||||||
variant="subtitle1"
|
variant="subtitle1"
|
||||||
component="div"
|
component="div"
|
||||||
style={{ fontWeight: 600 }}
|
className={classes.devFlagsTitle}
|
||||||
>
|
>
|
||||||
🚧 {translate('about.config.devFlagsHeader')}
|
🚧 {translate('about.config.devFlagsHeader')}
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -406,6 +404,7 @@ const TabContent = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const AboutDialog = ({ open, onClose }) => {
|
const AboutDialog = ({ open, onClose }) => {
|
||||||
|
const classes = useStyles()
|
||||||
const { permissions } = usePermissions()
|
const { permissions } = usePermissions()
|
||||||
const { data: insightsData, loading } = useGetOne(
|
const { data: insightsData, loading } = useGetOne(
|
||||||
'insights',
|
'insights',
|
||||||
@@ -442,7 +441,7 @@ const AboutDialog = ({ open, onClose }) => {
|
|||||||
open={open}
|
open={open}
|
||||||
fullWidth={true}
|
fullWidth={true}
|
||||||
maxWidth={expanded ? 'lg' : 'sm'}
|
maxWidth={expanded ? 'lg' : 'sm'}
|
||||||
style={{ transition: 'max-width 300ms ease' }}
|
className={classes.expandableDialog}
|
||||||
>
|
>
|
||||||
<DialogTitle id="about-dialog-title" onClose={onClose}>
|
<DialogTitle id="about-dialog-title" onClose={onClose}>
|
||||||
Navidrome Music Server
|
Navidrome Music Server
|
||||||
|
|||||||
Reference in New Issue
Block a user