Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #989 from eyworldwide/main
Browse files Browse the repository at this point in the history
fix: homepage header
  • Loading branch information
eyworldwide authored Mar 18, 2024
2 parents 76fa1ce + aab8a2d commit 022afd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function Header({ isHomePage }: { isHomePage?: boolean }) {
>
<Translate />
</ActionButton>
<Select
{!isHomePage && <Select
label="version"
size='sm'
onSelectionChange={(e) => {
Expand All @@ -75,7 +75,7 @@ function Header({ isHomePage }: { isHomePage?: boolean }) {
JSON.parse(v.packages)["@galacean/engine"].version?.replace(/\.\d+-beta\.\d+/, '-beta') :
v.version
}</Option>)}
</Select>
</Select>}
{isMobile && <Popover trigger={
<ActionButton>
<Menu />
Expand Down Expand Up @@ -106,7 +106,7 @@ function Header({ isHomePage }: { isHomePage?: boolean }) {
<img src={logoUrl} alt='galacean' />
</StyledLogo>
{isMobile && rightActions(true)}
{!isMobile && <SearchBox></SearchBox>}
{!isMobile && !isHomePage && <SearchBox></SearchBox>}
</Flex>
{!isMobile && (
<Flex align="both" gap="sm">
Expand Down
2 changes: 1 addition & 1 deletion src/home/Production.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function Production() {
padding: "$10 0"
}
}}>
<StyledCard style={{ backgroundImage: `url(https://mdn.alipayobjects.com/huamei_w1o8la/afts/img/A*cOUgSYMpo1cAAAAAAAAAAAAADsB_AQ/fmt.webp)` }}>
<StyledCard style={{ backgroundImage: `url(https://mdn.alipayobjects.com/huamei_2uqjce/afts/img/A*4tQ4T4CFKRsAAAAAAAAAAAAADsF_AQ/fmt.webp)` }}>
<StyledH align="v" wrap={false}>
<FormattedMessage id="app.home.engine" />
</StyledH>
Expand Down

0 comments on commit 022afd4

Please sign in to comment.