feat(admin): collapse create-feed form into accordion

Wrap the "Create New Feed" form in a native <details> accordion, collapsed
by default and auto-opened when no feeds exist. After creating a feed,
redirect to the "Your Feeds" anchor so the new feed is immediately visible.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Julien Herr
2026-05-23 21:41:25 +02:00
parent 5fc91a0be4
commit 3368b0d1d2
4 changed files with 44 additions and 6 deletions
+33
View File
@@ -13,6 +13,39 @@
margin-top: 0;
}
/* Create-feed accordion */
.create-feed-card > summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--spacing-md);
cursor: pointer;
list-style: none;
}
.create-feed-card > summary::-webkit-details-marker {
display: none;
}
.create-feed-summary h2 {
margin: 0;
}
.create-feed-card > summary::after {
content: "+";
color: var(--color-primary);
font-size: var(--font-size-xl);
line-height: 1;
}
.create-feed-card[open] > summary::after {
content: "\2212";
}
.create-feed-card[open] > summary {
margin-bottom: var(--spacing-md);
}
/* Feed header styling */
.feed-header {
margin-bottom: var(--spacing-md);