Skip to content

Commit

Permalink
fix: modify header style (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyifeng authored May 13, 2024
1 parent 0c64dc0 commit 93b44ed
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions lib/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useEffect, useState } from "react";
import styled from "styled-components";
import {
LogoSymbolOpensquareColor,
LogoTypeOpensquare,
SystemClose,
SystemMenu,
} from "@osn/icons/opensquare";
Expand Down Expand Up @@ -43,6 +42,7 @@ export default function Header({
children,
logoRender = defaultLogoRender,
prefix,
suffix,
links = [],
connectButton,
className = "",
Expand All @@ -65,15 +65,18 @@ export default function Header({
)}
{logoRender(
<Flex className="gap-x-2.5">
<LogoSymbolOpensquareColor className="w-9 h-[26px]" />
<LogoTypeOpensquare
className={cn(
"mt-[3px] [&_path]:fill-textPrimary",
"max-sm:hidden",
)}
/>
<LogoSymbolOpensquareColor className="h-[28px]" />
<span className="text-textPrimary text-[22px] leading-[22px] font-bold max-sm:hidden">
OpenSquare
</span>
</Flex>,
)}
{suffix && (
<>
<hr className="h-4 mx-4 border-r" />
{suffix}
</>
)}
</Flex>

{/* mobile menu button */}
Expand Down

0 comments on commit 93b44ed

Please sign in to comment.