Skip to content

Commit

Permalink
Fix layout when rendering multiple action buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
evert committed Jan 8, 2025
1 parent c8383f1 commit 30ad764
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 77 deletions.
10 changes: 10 additions & 0 deletions assets/themes/curveball/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ header a {
text-decoration: none;
}

ul.button-actions {
display: flex;
flex-direction: row;
gap: 8px;

list-style: none;
margin: 0;
padding: 0;
}

/* search */
form.search {

Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

1.1.5 (????-??-??)
------------------

* Fix layout when multiple single-button actions are rendered.


1.1.4 (2024-12-15)
------------------

Expand Down
162 changes: 86 additions & 76 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion src/components/forms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export function Forms(props: PageProps) {

return <>
<h2 key="-1">Actions</h2>
{buttonForms.map( (form, index) => <span key={index}>{form}</span>)}
<ul className="action-buttons">
{buttonForms.map( (form, index) => <li key={index}>{form}</li>)}
</ul>
{forms.map( (form, index) => <span key={index}>{form}</span>)}
</>;

Expand Down

0 comments on commit 30ad764

Please sign in to comment.