Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: stack song built-in banner vertically on mobile

[._.]/ Adam Eivy801dc54061ae
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 5251774603..b75ce04831 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -8,6 +8,7 @@
## Changed
+- **Songs: built-in alert stacks cleanly on mobile** — the "Built-in default" banner on the song page now stacks its label, description, and Refresh action vertically on narrow screens instead of cramming them onto one row, with full-width touch targets for the refresh/confirm buttons.
- **[issue-1027] Songs: vocal takes remember their pitch analysis** — a recorded take now saves its tuner trace and color-match score so your accuracy isn't recomputed every time you reopen the song.
- **[issue-1060] Cleaner test runs** — browser-dependent tests now run only under their own test environment, so the server test run no longer reports spurious failures from double-running them.
- **[issue-1050] More reliable database exports** — manual database exports now pick a PostgreSQL dump tool that matches the database being exported, so an export no longer fails on machines with several Postgres versions installed.
diff --git a/client/src/pages/SongEditor.jsx b/client/src/pages/SongEditor.jsx
index 92858d38e7..d311fc43a6 100644
--- a/client/src/pages/SongEditor.jsx
+++ b/client/src/pages/SongEditor.jsx
@@ -1115,26 +1115,26 @@ function ReferenceCard({ reference }) {
function BuiltInBanner({ onRefresh, refreshing }) {
const [confirming, setConfirming] = useState(false);
return (
- <div className="flex flex-wrap items-center gap-3 bg-port-accent/5 border border-port-accent/20 rounded-lg px-3 py-2">
+ <div className="flex flex-col sm:flex-row sm:flex-wrap sm:items-center gap-2 sm:gap-3 bg-port-accent/5 border border-port-accent/20 rounded-lg px-3 py-2">
<Pill tone="accent" icon={Sparkles}>Built-in default</Pill>
- <span className="text-xs text-gray-400 flex-1 min-w-0">
+ <span className="text-xs text-gray-400 sm:flex-1 sm:min-w-0">
Shipped with PortOS. Refresh to restore the latest bundled lyrics, arrangement & references — your recordings and learned progress are kept.
</span>
{confirming ? (
- <span className="flex items-center gap-2">
- <span className="text-xs text-gray-300">Replace local edits?</span>
+ <span className="flex flex-wrap items-center gap-2">
+ <span className="text-xs text-gray-300 w-full sm:w-auto">Replace local edits?</span>
<button
type="button"
onClick={() => { onRefresh(); setConfirming(false); }}
disabled={refreshing}
- className="px-2.5 py-1 text-xs rounded-lg bg-port-accent text-white hover:bg-port-accent/90 disabled:opacity-50"
+ className="flex-1 sm:flex-none px-2.5 py-1.5 text-xs rounded-lg bg-port-accent text-white hover:bg-port-accent/90 disabled:opacity-50"
>
{refreshing ? 'Refreshing…' : 'Refresh'}
</button>
<button
type="button"
onClick={() => setConfirming(false)}
- className="px-2.5 py-1 text-xs rounded-lg border border-port-border text-gray-300 hover:text-white"
+ className="flex-1 sm:flex-none px-2.5 py-1.5 text-xs rounded-lg border border-port-border text-gray-300 hover:text-white"
>
Cancel
</button>
@@ -1144,7 +1144,7 @@ function BuiltInBanner({ onRefresh, refreshing }) {
type="button"
onClick={() => setConfirming(true)}
disabled={refreshing}
- className="flex items-center gap-1.5 px-2.5 py-1.5 text-xs rounded-lg border border-port-border text-gray-300 hover:text-white hover:bg-port-border/50 disabled:opacity-50 shrink-0"
+ className="flex items-center justify-center gap-1.5 w-full sm:w-auto px-2.5 py-1.5 text-xs rounded-lg border border-port-border text-gray-300 hover:text-white hover:bg-port-border/50 disabled:opacity-50 sm:shrink-0"
>
<RefreshCw size={14} /> Refresh from template
</button>