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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plotlink",
"version": "0.1.18",
"version": "0.1.19",
"private": true,
"workspaces": [
"packages/*"
Expand Down
10 changes: 5 additions & 5 deletions src/app/story/[storylineId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,10 @@ function StoryHeader({

return (
<header
className="pb-6 grid gap-x-4 sm:gap-x-6 grid-cols-[130px_1fr] sm:grid-cols-[160px_1fr] [grid-template-areas:'cover_info'_'stats_stats'] sm:[grid-template-areas:'cover_info'_'cover_stats']"
className="pb-6 grid gap-x-4 sm:gap-x-6 grid-cols-[130px_1fr] sm:grid-cols-[160px_1fr]"
>
{/* Moleskine book cover */}
<div className="[grid-area:cover]">
<div className="sm:row-span-2">
<div
className="relative flex flex-col overflow-hidden border border-[var(--border)]"
style={{
Expand Down Expand Up @@ -352,7 +352,7 @@ function StoryHeader({
</div>

{/* Info column */}
<div className="[grid-area:info] min-w-0">
<div className="min-w-0">
<h1 className="font-body text-xl sm:text-2xl font-bold tracking-tight text-accent">
{storyline.title}
</h1>
Expand Down Expand Up @@ -380,8 +380,8 @@ function StoryHeader({
</div>
</div>

{/* Stats + CTA — rendered once, repositioned via grid areas */}
<div className="[grid-area:stats]">
{/* Stats + CTA */}
<div className="col-span-2 sm:col-span-1 sm:col-start-2">
{statsGrid && <div className="mt-4 sm:mt-6">{statsGrid}</div>}
<div className="[&_a]:w-full [&_div]:w-full sm:[&_a]:w-auto sm:[&_div]:w-auto">{ctaButton}</div>
</div>
Expand Down
Loading