feat: search and actions

This commit is contained in:
Caio Cabral
2025-01-09 12:32:54 -05:00
parent 07641a2bd8
commit be144c5ed2
2 changed files with 7 additions and 6 deletions

View File

@@ -155,16 +155,21 @@ const Search = ({
popper: {
keepMounted: true,
sx: {
"& ul": { p: 2 },
"& ul": { p: 2, backgroundColor: theme.palette.primary.main },
"& li.MuiAutocomplete-option": {
color: theme.palette.primary.contrastText.secondary,
px: 4,
borderRadius: theme.shape.borderRadius,
},
"& .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true'], & .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true'].Mui-focused, & .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true']:hover":
{
backgroundColor: theme.palette.primary.lowContrast,
},
"& li.MuiAutocomplete-option:hover:not([aria-selected='true'])": {
color: theme.palette.primary.main,
backgroundColor: theme.palette.primary.contrastText.secondary,
},
"& .MuiAutocomplete-noOptions": {
px: theme.spacing(6),
py: theme.spacing(5),

View File

@@ -60,17 +60,13 @@ const UptimeMonitors = () => {
{canAddMonitor && (
<Button
variant="contained"
color="primary"
color="accent"
onClick={() => {
navigate("/uptime/create");
}}
sx={{
fontWeight: 500,
whiteSpace: "nowrap",
/*
TODO Problem, could not make button mui work
backgroundColor: theme.palette.accent.main,
color: theme.palette.accent.contrastText, */
}}
>
Create new