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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"deploy": "clawnify deploy"
},
"dependencies": {
"@clawnify/app": "^0.2.1",
"@clawnify/db": "^0.4.2",
"@clawnify/app": "^0.4.8",
"@clawnify/db": "^0.4.3",
"@hono/zod-openapi": "^0.18.0",
"@phosphor-icons/react": "^2.1.10",
"hono": "^4.13.7",
Expand Down
132 changes: 67 additions & 65 deletions pnpm-lock.yaml

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

10 changes: 6 additions & 4 deletions src/client/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ export function App() {
return (
<div className="max-w-3xl mx-auto px-4 pb-20">
{embedded ? (
<div className="pt-8">
<AppNav title="Books" icon="book-open" groups={HOST_NAV} active={activeNavId(path)}
onNavigate={(item) => item.href && navigate(item.href)} />
</div>
<div className="pt-8" />
) : (
<header className="flex items-baseline gap-6 mt-8 mb-8 pb-4 border-b border-gray-100 flex-wrap">
<Link to="/" className="text-xl font-semibold text-gray-900 hover:no-underline">
Expand All @@ -78,6 +75,11 @@ export function App() {
)}
<Notice />
<main>{renderRoute(path)}</main>
{/* Inside Clawnify the dashboard sidebar draws HOST_NAV; anywhere else the
header above stays, and the notice card sits here. */}
<AppNav title="Books" icon="book-open" groups={HOST_NAV} active={activeNavId(path)}
onNavigate={(item) => item.href && navigate(item.href)}
standalone={(nav) => nav.card && <div className="mt-12 max-w-xs">{nav.card}</div>} />
</div>
);
}
Expand Down
Loading