Skip to content

Commit

Permalink
Improve cold-start message in collection browser, fix empty collectio…
Browse files Browse the repository at this point in the history
…n browser having no width
  • Loading branch information
darrenburns committed Nov 12, 2024
1 parent 0e983dd commit aa0c3a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/posting/widgets/collection/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,9 @@ class CollectionBrowser(Vertical):
#empty-collection-label {
color: $text-muted;
padding: 1 2;
width: 24;
}
}
"""

Expand All @@ -607,7 +607,7 @@ def compose(self) -> ComposeResult:
collection = self.collection

yield Static(
"[i]Collection is empty.[/]\nPress [b]ctrl+s[/b] to save the current request.",
"[i]Collection is empty.[/]\n\nPress [b]ctrl+s[/b] to save the current request.\n\nPress [b]ctrl+h[/b] to toggle this panel.",
id="empty-collection-label",
)

Expand Down
5 changes: 3 additions & 2 deletions uv.lock

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

0 comments on commit aa0c3a9

Please sign in to comment.