Skip to content

Commit 0aa17a1

Browse files
committed
add up and down arrows for color blind health checks
1 parent bf425ce commit 0aa17a1

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

frontend/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-frontend",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"private": true,
55
"scripts": {
66
"dev": "vite --host",

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
2+
import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp';
13
import MoreVertIcon from '@mui/icons-material/MoreVert';
24
import { Box, Card, IconButton, Menu, MenuItem, Tooltip } from '@mui/material';
35
import React, { useState } from 'react';
@@ -109,9 +111,19 @@ export const WidgetContainer: React.FC<Props> = ({ children, editMode, onEdit, o
109111
height: 10,
110112
borderRadius: '50%',
111113
backgroundColor: dotColor,
112-
cursor: 'pointer'
114+
cursor: 'pointer',
115+
display: 'flex',
116+
alignItems: 'center',
117+
justifyContent: 'center'
113118
}}
114-
/>
119+
>
120+
{dotColor === 'green' && (
121+
<KeyboardArrowUpIcon sx={{ color: 'white', fontSize: 12, position: 'relative' }} />
122+
)}
123+
{dotColor === 'red' && (
124+
<KeyboardArrowDownIcon sx={{ color: 'white', fontSize: 12, position: 'relative' }} />
125+
)}
126+
</Box>
115127
</Tooltip>
116128
)}
117129
</Card>

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.0.5",
3+
"version": "1.0.6",
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)