Skip to content

Commit caa49ea

Browse files
authored
chore: stabilize light theme (coder#12855)
1 parent 4191425 commit caa49ea

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

site/src/modules/dashboard/Navbar/NavbarView.stories.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@ export const ForMember: Story = {
2525
canViewAllUsers: false,
2626
},
2727
};
28+
29+
export const CustomLogo: Story = {
30+
args: {
31+
logo_url: "/icon/github.svg",
32+
},
33+
};

site/src/modules/dashboard/Navbar/NavbarView.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { type FC, type ReactNode, useRef, useState } from "react";
1313
import { NavLink, useLocation, useNavigate } from "react-router-dom";
1414
import type * as TypesGen from "api/typesGenerated";
1515
import { Abbr } from "components/Abbr/Abbr";
16+
import { ExternalImage } from "components/ExternalImage/ExternalImage";
1617
import { displayError } from "components/GlobalSnackbar/utils";
1718
import { CoderIcon } from "components/Icons/CoderIcon";
1819
import { Latency } from "components/Latency/Latency";
@@ -150,7 +151,7 @@ export const NavbarView: FC<NavbarViewProps> = ({
150151
<div css={styles.drawerHeader}>
151152
<div css={[styles.logo, styles.drawerLogo]}>
152153
{logo_url ? (
153-
<img src={logo_url} alt="Custom Logo" />
154+
<ExternalImage src={logo_url} alt="Custom Logo" />
154155
) : (
155156
<CoderIcon />
156157
)}
@@ -167,7 +168,7 @@ export const NavbarView: FC<NavbarViewProps> = ({
167168

168169
<NavLink css={styles.logo} to="/workspaces">
169170
{logo_url ? (
170-
<img src={logo_url} alt="Custom Logo" />
171+
<ExternalImage src={logo_url} alt="Custom Logo" />
171172
) : (
172173
<CoderIcon fill="white" opacity={1} width={125} />
173174
)}

site/src/pages/UserSettingsPage/AppearancePage/AppearanceForm.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export const AppearanceForm: FC<AppearanceFormProps> = ({
5757
/>
5858
<ThemePreviewButton
5959
displayName="Light"
60-
preview
6160
active={currentTheme === "light"}
6261
theme={themes.light}
6362
onSelect={() => onChangeTheme("light")}

0 commit comments

Comments
 (0)