Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 5 additions & 10 deletions templates/analytics/app/components/layout/MobileNav.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useT } from "@agent-native/core/client";
import { IconMenu, IconChartBar } from "@tabler/icons-react";
import { IconMenu } from "@tabler/icons-react";
import { useState, useEffect } from "react";
import { useLocation } from "react-router";

Expand All @@ -18,22 +18,17 @@ export function MobileNav() {
}, [location.pathname]);

return (
<div className="flex h-12 shrink-0 items-center border-b border-border bg-sidebar px-4 md:hidden">
<div className="flex h-12 shrink-0 items-center border-b border-border bg-background px-4 md:hidden">
<button
onClick={() => setOpen(true)}
className="me-3 p-2.5 -ms-1 rounded-md hover:bg-sidebar-accent/50"
aria-label={t("navigation.openNavigation")}
>
<IconMenu className="h-5 w-5 text-foreground" />
</button>
<div className="flex items-center gap-2">
<div className="flex h-7 w-7 items-center justify-center rounded-lg bg-primary text-primary-foreground">
<IconChartBar className="h-4 w-4" />
</div>
<span className="text-base font-bold tracking-tight">
{t("navigation.brand")}
</span>
</div>
<span className="text-base font-bold tracking-tight">
{t("navigation.brand")}
</span>

<Sheet open={open} onOpenChange={setOpen}>
<SheetContent side="left" className="p-0 w-[280px]">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
type: improved
date: 2026-06-27
---
Improved mobile navigation chrome and sidebar drawer motion.
2 changes: 1 addition & 1 deletion templates/assets/app/components/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function Layout({ children }: LayoutProps) {
)}
<div
className={cn(
"agent-layout-left-drawer fixed inset-y-0 start-0 z-50 md:static md:z-auto",
"agent-layout-left-drawer fixed inset-y-0 start-0 z-50 transition-transform duration-200 ease-out md:static md:z-auto md:transition-none",
mobileSidebarOpen
? "translate-x-0"
: "-translate-x-full md:translate-x-0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
type: improved
date: 2026-06-27
---
Improved mobile navigation chrome and sidebar drawer motion.
2 changes: 1 addition & 1 deletion templates/design/app/components/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function Layout({ children }: LayoutProps) {
)}
<div
className={cn(
"agent-layout-left-drawer fixed inset-y-0 start-0 z-50 md:static md:z-auto",
"agent-layout-left-drawer fixed inset-y-0 start-0 z-50 transition-transform duration-200 ease-out md:static md:z-auto md:transition-none",
mobileSidebarOpen
? "translate-x-0"
: "-translate-x-full rtl:translate-x-full md:translate-x-0 md:rtl:translate-x-0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
type: improved
date: 2026-06-27
---
Improved mobile navigation chrome and sidebar drawer motion.
2 changes: 1 addition & 1 deletion templates/slides/app/components/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function Layout({ children }: LayoutProps) {
)}
<div
className={cn(
"agent-layout-left-drawer fixed inset-y-0 start-0 z-50 md:static md:z-auto",
"agent-layout-left-drawer fixed inset-y-0 start-0 z-50 transition-transform duration-200 ease-out md:static md:z-auto md:transition-none",
sidebarOpen
? "translate-x-0"
: "-translate-x-full rtl:translate-x-full md:translate-x-0 md:rtl:translate-x-0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
type: improved
date: 2026-06-27
---
Improved mobile navigation chrome and sidebar drawer motion.
Loading