From 3f336b279e52f409027b4cd309885855b0d348c7 Mon Sep 17 00:00:00 2001 From: Pierre Le Fevre Date: Wed, 20 Dec 2023 16:22:58 +0100 Subject: [PATCH] Fix actions, docker in dark mode --- src/pages/edit/deployments/GHActions.jsx | 16 ++++++++++++++-- src/pages/edit/vms/PortManager.jsx | 10 ++++++---- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/pages/edit/deployments/GHActions.jsx b/src/pages/edit/deployments/GHActions.jsx index f8a4f66..24425bf 100644 --- a/src/pages/edit/deployments/GHActions.jsx +++ b/src/pages/edit/deployments/GHActions.jsx @@ -14,6 +14,7 @@ import { TextareaAutosize, Tooltip, Typography, + useTheme, } from "@mui/material"; import { CopyToClipboard } from "react-copy-to-clipboard"; import Iconify from "src/components/Iconify"; @@ -26,6 +27,7 @@ const GHActions = ({ resource }) => { const [cliCommands, setCliCommands] = useState(null); const [secrets, setSecrets] = useState([]); const [showSecrets, setShowSecrets] = useState(false); + const theme = useTheme(); const loadYaml = async () => { try { @@ -98,7 +100,12 @@ const GHActions = ({ resource }) => { @@ -117,7 +124,12 @@ const GHActions = ({ resource }) => { vm.cloud.cbh.kth.se @@ -155,7 +157,7 @@ export default function PortManager({ vm }) { {t("external_port")} @@ -169,7 +171,7 @@ export default function PortManager({ vm }) { style={{ fontFamily: "monospace", cursor: "pointer", - color: "#45515c", + color: theme.palette.grey[700], }} > {publicIP} @@ -179,7 +181,7 @@ export default function PortManager({ vm }) { {t("external_port")}