File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
client/packages/lowcoder/src Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11//window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches
22import { ReactComponent as LogoIcon } from "./logo.svg" ;
33import { ReactComponent as LogoWithNameIcon } from "./logo-with-name.svg" ;
4+ import { ReactComponent as LogoHomeIcon } from "./logo-with-name.svg" ;
45
56export { default as favicon } from "./favicon.ico" ;
67
@@ -10,3 +11,6 @@ export const Logo = (props: { branding?: boolean }) => {
1011export const LogoWithName = ( props : { branding ?: boolean } ) => {
1112 return < LogoWithNameIcon /> ;
1213} ;
14+ export const LogoHome = ( props : { branding ?: boolean } ) => {
15+ return < LogoHomeIcon /> ;
16+ } ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { Layout, Skeleton } from "antd";
22import MainContent from "components/layout/MainContent" ;
33import SideBar from "components/layout/SideBar" ;
44import Header from "./layout/Header" ;
5- import { Logo , LogoWithName } from "@lowcoder-ee/assets/images" ;
5+ import { Logo , LogoWithName , LogoHome } from "@lowcoder-ee/assets/images" ;
66import styled from "styled-components" ;
77import { useSelector } from "react-redux" ;
88import { 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+
2530const 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 ? < StyledLogoWithName branding = { true } /> : < StyledLogo branding = { true } />
86+ < StyledLogoHome branding = { true } />
8287 }
8388 style = { { backgroundColor : brandingConfig ?. headerColor , ...props . headStyle } }
8489 />
You can’t perform that action at this time.
0 commit comments