Skip to content

Commit 52d47b9

Browse files
chore: use workflows_nav_icon.svg image button in mobile sidebar header
1 parent da9178f commit 52d47b9

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

site_jaspr/lib/main.server.dart

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,17 @@ void main() {
8888
// Icon links and secondary text links are intentionally omitted
8989
// to keep the header to a single row.
9090
mobileNavItems: [
91-
NavLink(text: 'Get Started', href: '/docs/overview', isButton: true),
91+
a(
92+
href: '/docs/workflows',
93+
classes: 'mobile-workflows-btn',
94+
[
95+
img(
96+
src: '/images/workflows_nav_icon.svg',
97+
alt: 'Workflows',
98+
attributes: {'height': '32', 'width': '105'},
99+
),
100+
],
101+
),
92102
ThemeToggle(),
93103
],
94104
items: [

site_jaspr/lib/styles/site_styles.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,14 @@ List<StyleRule> get siteStyles => [
304304
),
305305
css('.docs .sidebar').styles(width: Unit.percent(100)),
306306
]),
307+
// Mobile sidebar: Workflows image-button (the SVG pill used in the header).
308+
css('.mobile-workflows-btn').styles(
309+
display: Display.flex,
310+
alignItems: AlignItems.center,
311+
textDecoration: TextDecoration.none,
312+
),
313+
css('.mobile-workflows-btn:hover').styles(opacity: 0.8),
314+
307315
// Dark mode mobile: sidebar panel uses the navbar background (#081842),
308316
// matching Docusaurus where --ifm-navbar-background-color is applied to
309317
// the mobile overlay instead of the page background (#020f30).

0 commit comments

Comments
 (0)