mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
formatting upgrade button
This commit is contained in:
@@ -234,10 +234,10 @@ const Version = () => {
|
|||||||
alignItems: 'baseline'
|
alignItems: 'baseline'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Grid size={4}>
|
<Grid size={{ xs: 4, md: 2 }}>
|
||||||
<Typography color="secondary">{LL.VERSION()}</Typography>
|
<Typography color="secondary">{LL.VERSION()}</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid size={8}>
|
<Grid size={{ xs: 8, md: 10 }}>
|
||||||
<Typography>
|
<Typography>
|
||||||
{data.emsesp_version}
|
{data.emsesp_version}
|
||||||
{data.build_flags && (
|
{data.build_flags && (
|
||||||
@@ -248,17 +248,17 @@ const Version = () => {
|
|||||||
</Typography>
|
</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Grid size={4}>
|
<Grid size={{ xs: 4, md: 2 }}>
|
||||||
<Typography color="secondary">Platform</Typography>
|
<Typography color="secondary">Platform</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid size={8}>
|
<Grid size={{ xs: 8, md: 10 }}>
|
||||||
<Typography>{getPlatform()}</Typography>
|
<Typography>{getPlatform()}</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Grid size={4}>
|
<Grid size={{ xs: 4, md: 2 }}>
|
||||||
<Typography color="secondary">Release Type</Typography>
|
<Typography color="secondary">Release Type</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid size={8}>
|
<Grid size={{ xs: 8, md: 10 }}>
|
||||||
<Typography>
|
<Typography>
|
||||||
{data.emsesp_version.includes('dev')
|
{data.emsesp_version.includes('dev')
|
||||||
? LL.DEVELOPMENT()
|
? LL.DEVELOPMENT()
|
||||||
@@ -280,29 +280,29 @@ const Version = () => {
|
|||||||
alignItems: 'baseline'
|
alignItems: 'baseline'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Grid size={4}>
|
<Grid size={{ xs: 4, md: 2 }}>
|
||||||
<Typography color="secondary">{LL.STABLE()}</Typography>
|
<Typography color="secondary">{LL.STABLE()}</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid size={4}>
|
<Grid size={{ xs: 8, md: 10 }}>
|
||||||
<Typography>
|
<Typography>
|
||||||
<Link target="_blank" href={STABLE_RELNOTES_URL} color="primary">
|
<Link target="_blank" href={STABLE_RELNOTES_URL} color="primary">
|
||||||
{latestVersion}
|
{latestVersion}
|
||||||
</Link>
|
</Link>
|
||||||
|
{!usingDevVersion && showButtons()}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid size={4}>{!usingDevVersion && showButtons()}</Grid>
|
|
||||||
|
|
||||||
<Grid size={4}>
|
<Grid size={{ xs: 4, md: 2 }}>
|
||||||
<Typography color="secondary">{LL.DEVELOPMENT()}</Typography>
|
<Typography color="secondary">{LL.DEVELOPMENT()}</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid size={4}>
|
<Grid size={{ xs: 8, md: 10 }}>
|
||||||
<Typography>
|
<Typography>
|
||||||
<Link target="_blank" href={DEV_RELNOTES_URL} color="primary">
|
<Link target="_blank" href={DEV_RELNOTES_URL} color="primary">
|
||||||
{latestDevVersion}
|
{latestDevVersion}
|
||||||
</Link>
|
</Link>
|
||||||
|
{usingDevVersion && showButtons()}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid size={4}>{usingDevVersion && showButtons()}</Grid>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
{internetLive ? (
|
{internetLive ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user