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
24 changes: 12 additions & 12 deletions app/web/components/StoryBrowser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@ export function StoryBrowser({ authFetch, selectedStory, selectedFile, onSelectF
<span className="text-xs font-mono text-muted">Stories</span>
<span className="text-xs text-muted">{stories.length}</span>
</div>
{onNewStory && (
<div className="px-3 py-2 border-b border-border">
<button
onClick={onNewStory}
className="w-full px-3 py-1.5 text-sm bg-accent text-white rounded hover:bg-accent-dim flex items-center justify-center gap-1.5"
>
<span>+</span>
<span>New Story</span>
</button>
</div>
)}
<div className="flex-1 min-h-0 overflow-y-auto">
{/* Untitled new story sessions */}
{untitledSessions.map((id) => (
Expand All @@ -135,7 +146,7 @@ export function StoryBrowser({ authFetch, selectedStory, selectedFile, onSelectF
{stories.length === 0 && untitledSessions.length === 0 ? (
<div className="p-3 text-sm text-muted">
<p>No stories yet.</p>
<p className="mt-1 text-xs">Click &quot;+ New Story&quot; below to start writing.</p>
<p className="mt-1 text-xs">Click &quot;+ New Story&quot; above to start writing.</p>
</div>
) : (
stories.filter((s) => s.name !== "_example").map((story) => (
Expand Down Expand Up @@ -173,17 +184,6 @@ export function StoryBrowser({ authFetch, selectedStory, selectedFile, onSelectF
))
)}
</div>
{onNewStory && (
<div className="px-3 py-2 border-t border-border">
<button
onClick={onNewStory}
className="w-full px-3 py-1.5 text-sm text-accent hover:bg-surface rounded flex items-center gap-1.5"
>
<span>+</span>
<span>New Story</span>
</button>
</div>
)}
</div>
);
}

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/web/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@400;600;700&family=Geist+Mono:wght@400;500&display=swap" rel="stylesheet" />
<script type="module" crossorigin src="/assets/index-C2Vj4mnw.js"></script>
<script type="module" crossorigin src="/assets/index-BvR_f6_r.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CF78M7uF.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plotlink-ows",
"version": "1.0.10",
"version": "1.0.11",
"bin": {
"plotlink-ows": "./bin/plotlink-ows.js"
},
Expand Down
Loading