Skip to content

Commit 509b978

Browse files
authored
single-button-theme-toggle-and-responsive-logo (prometheus#16021)
Signed-off-by: amanycodes <amanycodes@gmail.com>
1 parent 8fe24ce commit 509b978

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

web/ui/mantine-ui/src/App.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,14 +332,16 @@ function App() {
332332
justify="space-between"
333333
wrap="nowrap"
334334
>
335-
<Group gap={65} wrap="nowrap">
335+
<Group gap={40} wrap="nowrap">
336336
<Link
337337
to="/"
338338
style={{ textDecoration: "none", color: "white" }}
339339
>
340340
<Group gap={10} wrap="nowrap">
341341
<img src={PrometheusLogo} height={30} />
342-
<Text fz={20}>Prometheus{agentMode && " Agent"}</Text>
342+
<Text hiddenFrom="sm" fz={20}>Prometheus</Text>
343+
<Text visibleFrom="md" fz={20}>Prometheus</Text>
344+
<Text fz={20}>{agentMode && "Agent"}</Text>
343345
</Group>
344346
</Link>
345347
<Group gap={12} visibleFrom="sm" wrap="nowrap">

web/ui/mantine-ui/src/components/ThemeSelector.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { useMantineColorScheme, rem, ActionIcon } from "@mantine/core";
22
import {
3-
IconBrightnessFilled,
43
IconMoonFilled,
54
IconSunFilled,
5+
IconBrightnessFilled,
66
} from "@tabler/icons-react";
77
import { FC } from "react";
88

@@ -30,11 +30,11 @@ export const ThemeSelector: FC = () => {
3030
}
3131
>
3232
{colorScheme === "light" ? (
33-
<IconMoonFilled {...iconProps} />
33+
<IconSunFilled {...iconProps} />
3434
) : colorScheme === "dark" ? (
35-
<IconBrightnessFilled {...iconProps} />
35+
<IconMoonFilled {...iconProps} />
3636
) : (
37-
<IconSunFilled {...iconProps} />
37+
<IconBrightnessFilled {...iconProps} />
3838
)}
3939
</ActionIcon>
4040
);

0 commit comments

Comments
 (0)