Skip to content

Commit 4cceac8

Browse files
committed
abbreviate free and total on mobile to prevent overflow in disk mon
1 parent 7ee2e61 commit 4cceac8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

frontend/src/components/dashboard/base-items/widgets/DiskMonitorWidget.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,22 +285,22 @@ export const DiskMonitorWidget = ({ config, editMode }: DiskMonitorWidgetProps)
285285
sx={{
286286
fontSize: '0.65rem',
287287
color: 'white',
288-
minWidth: '80px'
288+
minWidth: isMobile ? '60px' : '80px'
289289
}}
290290
>
291-
Free: {formatSpace(displayFreeSpace)}
291+
{isMobile ? 'F:' : 'Free:'} {formatSpace(displayFreeSpace)}
292292
</Typography>
293293
<Typography
294294
variant='caption'
295295
sx={{
296296
ml: 'auto',
297297
color: 'white',
298298
fontSize: '0.65rem',
299-
minWidth: '80px',
299+
minWidth: isMobile ? '60px' : '80px',
300300
textAlign: 'right'
301301
}}
302302
>
303-
Total: {formatSpace(totalSpace)}
303+
{isMobile ? 'T:' : 'Total:'} {formatSpace(totalSpace)}
304304
</Typography>
305305
</Box>
306306
</Box>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lab-dash",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "This is an open-source user interface designed to manage your server and homelab",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)