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

Commit e8ee049

Browse files
Merge pull request #283 from aaron1604/feat/home-icon
feat: home icon
2 parents e699269 + 25fd92d commit e8ee049

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

‎client/packages/lowcoder/src/assets/images/index.tsx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches
22
import { ReactComponent as LogoIcon } from "./logo.svg";
33
import { ReactComponent as LogoWithNameIcon } from "./logo-with-name.svg";
4+
import { ReactComponent as LogoHomeIcon } from "./logo-with-name.svg";
45

56
export { default as favicon } from "./favicon.ico";
67

@@ -10,3 +11,6 @@ export const Logo = (props: { branding?: boolean }) => {
1011
export const LogoWithName = (props: { branding?: boolean }) => {
1112
return <LogoWithNameIcon />;
1213
};
14+
export const LogoHome = (props: { branding?: boolean }) => {
15+
return <LogoHomeIcon />;
16+
};
Lines changed: 1 addition & 0 deletions
Loading[フレーム]

‎client/packages/lowcoder/src/components/PageSkeleton.tsx‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Layout, Skeleton } from "antd";
22
import MainContent from "components/layout/MainContent";
33
import SideBar from "components/layout/SideBar";
44
import Header from "./layout/Header";
5-
import { Logo, LogoWithName } from "@lowcoder-ee/assets/images";
5+
import { Logo, LogoWithName,LogoHome } from "@lowcoder-ee/assets/images";
66
import styled from "styled-components";
77
import { useSelector } from "react-redux";
88
import { getBrandingConfig, getSystemConfigFetching } from "../redux/selectors/configSelectors";
@@ -22,6 +22,11 @@ const StyledLogo = styled(Logo)`
2222
width: 24px;
2323
`;
2424

25+
const StyledLogoHome = styled(LogoHome)`
26+
height: 24px;
27+
width: 24px;
28+
`;
29+
2530
const StyledLogoWithName = styled(LogoWithName)`
2631
height: 28px;
2732
/* width: 28px; */
@@ -78,7 +83,7 @@ export default function PageSkeleton(props: IProps) {
7883
{!hideHeader && isHeaderReady && (
7984
<Header
8085
headerStart={
81-
logoWithName ? <StyledLogoWithNamebranding={true}/> : <StyledLogo branding={true} />
86+
<StyledLogoHome branding={true} />
8287
}
8388
style={{ backgroundColor: brandingConfig?.headerColor, ...props.headStyle }}
8489
/>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /