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: keep writing actions on one row on narrow phones

[._.]/ Adam Eivy7b726db6558d
diff --git a/client/src/components/writers-room/WorkEditor.jsx b/client/src/components/writers-room/WorkEditor.jsx
index f03d0f7d93..cbbba907b5 100644
--- a/client/src/components/writers-room/WorkEditor.jsx
+++ b/client/src/components/writers-room/WorkEditor.jsx
@@ -745,7 +745,7 @@ export default function WorkEditor({ work, onChange, onToggleExercise, exerciseO
onChange={(e) => setTitle(e.target.value)}
onBlur={commitTitle}
onKeyDown={(e) => { if (e.key === 'Enter') e.target.blur(); }}
- className="bg-transparent text-base font-semibold text-white border-none focus:outline-none focus:bg-port-bg/50 px-1 rounded flex-1 min-w-[140px] sm:min-w-[180px] min-h-[44px] sm:min-h-0"
+ className="bg-transparent text-base font-semibold text-white border-none focus:outline-none focus:bg-port-bg/50 px-1 rounded flex-1 min-w-0 w-0 sm:w-auto sm:min-w-[180px] min-h-[44px] sm:min-h-0"
aria-label="Work title"
/>
{/* Secondary controls. `w-full order-last` gives them their own compact
diff --git a/client/src/components/writers-room/WorkEditor.test.jsx b/client/src/components/writers-room/WorkEditor.test.jsx
index 124b3cda41..9766c0de9e 100644
--- a/client/src/components/writers-room/WorkEditor.test.jsx
+++ b/client/src/components/writers-room/WorkEditor.test.jsx
@@ -107,6 +107,9 @@ describe('WorkEditor header layout (#3568)', () => {
const secondary = screen.getByTestId('work-header-secondary');
expect([...header.children]).toEqual([title, secondary, save, snapshot, menu]);
+ // Let a long title yield to the fixed-width Save control on narrow phones.
+ expect(title).toHaveClass('min-w-0', 'w-0');
+ expect(save).toHaveClass('w-24', 'shrink-0');
// Only the sub-bar is re-ordered; anything else carrying an `order-*` class
// would either break the row split or desync tab order from the layout.
for (const el of [title, save, snapshot, menu]) {