improve TOC style somewhat

This commit is contained in:
outfoxxed 2025-06-08 17:40:00 -07:00
parent 415c5f56ef
commit 55e272eb2e
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
19 changed files with 60 additions and 54 deletions

View file

@ -39,25 +39,21 @@ if (!data) {
sidebarData = undefined;
}
const { headings } = Astro.props;
const {
title = null,
headings = [],
} = Astro.props;
---
<div class="header">
<div class="header-item header-left">
{url.length > 2 ?
<Nav mobile={true}/>
<div class="nav-collapsed-spacer header-spacer"/>
: null}
<Nav mobile={true}/>
<h3 class="header-title">
<a href="/">Quickshell</a>
</h3>
</div>
<div class="header-item header-right">
<Search/>
<div class="header-spacer"/>
<ThemeSelect client:load />
{url.length > 2 ?
<div class="toc-collapsed-spacer header-spacer"/>
<TOC headings={headings} types={sidebarData} mobile={true}/>
: null}
<TOC title={title} headings={headings} types={sidebarData} mobile={true}/>
</div>
</div>