fix: minor fixes

This commit is contained in:
saicaca 2024-02-18 18:24:00 +08:00 committed by saica.go
parent af29b9160f
commit d68f26a74f
4 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ let links: NavBarLink[] = navBarConfig.links.map((item: NavBarLink | LinkPreset)
<div transition:animate="none" class:list={[ <div transition:animate="none" class:list={[
className, className,
"card-base sticky top-0 overflow-visible max-w-[var(--page-width)] h-[4.5rem] rounded-t-none mx-auto flex items-center justify-between px-4"]}> "card-base sticky top-0 overflow-visible max-w-[var(--page-width)] h-[4.5rem] rounded-t-none mx-auto flex items-center justify-between px-4"]}>
<a href="/page/1" class="btn-plain h-[3.25rem] px-5 font-bold rounded-lg active:scale-95"> <a href="/" class="btn-plain h-[3.25rem] px-5 font-bold rounded-lg active:scale-95">
<div class="flex flex-row text-[var(--primary)] items-center text-md"> <div class="flex flex-row text-[var(--primary)] items-center text-md">
<Icon name="material-symbols:home-outline-rounded" size={"1.75rem"} class="mb-1 mr-2" /> <Icon name="material-symbols:home-outline-rounded" size={"1.75rem"} class="mb-1 mr-2" />
{siteConfig.title} {siteConfig.title}

View File

@ -73,7 +73,7 @@ const className = Astro.props.class;
direction: rtl direction: rtl
display: inline-block display: inline-block
margin-right: 1rem margin-right: 1rem
width: 1.375rem width: 1rem
color: rgba(255, 255, 255, 0.25) color: rgba(255, 255, 255, 0.25)
pre pre
background: var(--codeblock-bg) !important background: var(--codeblock-bg) !important

View File

@ -18,7 +18,7 @@ interface Props {
let { title, banner } = Astro.props; let { title, banner } = Astro.props;
const isHomePage = pathsEqual(Astro.url.pathname, '/') || pathsEqual(Astro.url.pathname, '/page/1'); const isHomePage = pathsEqual(Astro.url.pathname, '/');
const testPathName = Astro.url.pathname; const testPathName = Astro.url.pathname;

View File

@ -13,7 +13,7 @@ interface Props {
} }
const { title, banner } = Astro.props const { title, banner } = Astro.props
const isHomePage = pathsEqual(Astro.url.pathname, '/') || pathsEqual(Astro.url.pathname, '/page/1') const isHomePage = pathsEqual(Astro.url.pathname, '/')
const enableBanner = siteConfig.banner.enable const enableBanner = siteConfig.banner.enable
--- ---