Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: stabilize light theme#12855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
aslilac merged 3 commits intomainfromstabilize-light-theme
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletionssite/src/modules/dashboard/Navbar/NavbarView.stories.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -25,3 +25,9 @@ export const ForMember: Story = {
canViewAllUsers: false,
},
};

export const CustomLogo: Story = {
args: {
logo_url: "/icon/github.svg",
},
};
5 changes: 3 additions & 2 deletionssite/src/modules/dashboard/Navbar/NavbarView.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,6 +13,7 @@ import { type FC, type ReactNode, useRef, useState } from "react";
import { NavLink, useLocation, useNavigate } from "react-router-dom";
import type * as TypesGen from "api/typesGenerated";
import { Abbr } from "components/Abbr/Abbr";
import { ExternalImage } from "components/ExternalImage/ExternalImage";
import { displayError } from "components/GlobalSnackbar/utils";
import { CoderIcon } from "components/Icons/CoderIcon";
import { Latency } from "components/Latency/Latency";
Expand DownExpand Up@@ -150,7 +151,7 @@ export const NavbarView: FC<NavbarViewProps> = ({
<div css={styles.drawerHeader}>
<div css={[styles.logo, styles.drawerLogo]}>
{logo_url ? (
<img src={logo_url} alt="Custom Logo" />
<ExternalImage src={logo_url} alt="Custom Logo" />
) : (
<CoderIcon />
)}
Expand All@@ -167,7 +168,7 @@ export const NavbarView: FC<NavbarViewProps> = ({

<NavLink css={styles.logo} to="/workspaces">
{logo_url ? (
<img src={logo_url} alt="Custom Logo" />
<ExternalImage src={logo_url} alt="Custom Logo" />
) : (
<CoderIcon fill="white" opacity={1} width={125} />
)}
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,7 +57,6 @@ export const AppearanceForm: FC<AppearanceFormProps> = ({
/>
<ThemePreviewButton
displayName="Light"
preview
active={currentTheme === "light"}
theme={themes.light}
onSelect={() => onChangeTheme("light")}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp