Skip to content

Commit

Permalink
Fix actions, docker in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrelefevre committed Dec 20, 2023
1 parent 704e024 commit 3f336b2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
16 changes: 14 additions & 2 deletions src/pages/edit/deployments/GHActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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 {
Expand Down Expand Up @@ -98,7 +100,12 @@ const GHActions = ({ resource }) => {
<CardContent>
<TextareaAutosize
value={cliCommands ? cliCommands : t("loading")}
style={{ width: "100%", border: 0 }}
style={{
width: "100%",
border: 0,
color: theme.palette.grey[900],
background: theme.palette.mode === "light" ? theme.palette.grey[0] : theme.palette.grey[100],
}}
/>
</CardContent>
<CardActions>
Expand All @@ -117,7 +124,12 @@ const GHActions = ({ resource }) => {
<Stack spacing={1} useFlexGap alignItems={"flex-start"}>
<TextareaAutosize
value={actionsFile ? actionsFile : t("loading")}
style={{ width: "100%", border: 0 }}
style={{
width: "100%",
border: 0,
color: theme.palette.grey[800],
background: theme.palette.mode === "light" ? theme.palette.grey[0] : theme.palette.grey[100],
}}
/>

<Stack
Expand Down
10 changes: 6 additions & 4 deletions src/pages/edit/vms/PortManager.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
CircularProgress,
Tooltip,
Stack,
useTheme,
} from "@mui/material";
import Iconify from "../../../components/Iconify";
import { enqueueSnackbar } from "notistack";
Expand All @@ -34,6 +35,7 @@ import { useTranslation } from "react-i18next";
export default function PortManager({ vm }) {
const { t } = useTranslation();

const theme = useTheme();
const [ports, setPorts] = useState([]);

const [newPort, setNewPort] = useState("");
Expand Down Expand Up @@ -145,7 +147,7 @@ export default function PortManager({ vm }) {
style={{
fontFamily: "monospace",
cursor: "pointer",
color: "#45515c",
color: theme.palette.grey[700],
}}
>
vm.cloud.cbh.kth.se
Expand All @@ -155,7 +157,7 @@ export default function PortManager({ vm }) {
<span
style={{
fontFamily: "monospace",
color: "#45515c",
color: theme.palette.grey[700],
}}
>
{t("external_port")}
Expand All @@ -169,7 +171,7 @@ export default function PortManager({ vm }) {
style={{
fontFamily: "monospace",
cursor: "pointer",
color: "#45515c",
color: theme.palette.grey[700],
}}
>
{publicIP}
Expand All @@ -179,7 +181,7 @@ export default function PortManager({ vm }) {
<span
style={{
fontFamily: "monospace",
color: "#45515c",
color: theme.palette.grey[700],
}}
>
{t("external_port")}
Expand Down

0 comments on commit 3f336b2

Please sign in to comment.