Skip to content

Commit ac19b85

Browse files
committed
fix(scratchnode): keep live composer placeholder consistent on mobile
1 parent 426c8ba commit ac19b85

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

public/proto/home-v5.html

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5390,25 +5390,22 @@ <h2 id="kbd-title">Keyboard shortcuts</h2>
53905390
if (!bodyEl) return;
53915391
var eventMode = bodyEl.getAttribute('data-event-mode') || 'event';
53925392
var bodyMode = bodyEl.getAttribute('data-mode') || 'public';
5393-
// Narrow screens get a concise placeholder — the long copy truncates to "Chat wi…" once the
5394-
// public-room pill + mic/lock/send buttons claim the composer width.
5395-
var narrow = (typeof window !== 'undefined' && window.matchMedia) ? window.matchMedia('(max-width: 540px)').matches : false;
53965393
var placeholder;
53975394
if (eventMode === 'sensitive') {
53985395
placeholder = 'Manual capture only — no transcription, no agent calls';
53995396
} else if (eventMode === 'work' && bodyMode === 'private') {
5400-
placeholder = narrow ? 'Private note → your NodeBench' : 'Private meeting note — saves to your NodeBench';
5397+
placeholder = 'Private meeting note — saves to your NodeBench';
54015398
} else if (eventMode === 'work' && bodyMode === 'public') {
54025399
placeholder = 'Visible to meeting room';
54035400
} else if (eventMode === 'event' && bodyMode === 'private') {
5404-
placeholder = narrow ? 'Private note (only you can see this)' : 'Save a private note (only you can see this)';
5401+
placeholder = 'Save a private note (only you can see this)';
54055402
} else {
54065403
// event + public (default)
5407-
placeholder = narrow ? 'Message or /ask…' : 'Chat with the room. /ask for sourced answers. 🔒 for private.';
5404+
placeholder = 'Chat with the room. /ask for sourced answers. 🔒 for private.';
54085405
}
54095406
ci.setAttribute('placeholder', placeholder);
54105407
}
5411-
// Re-run on breakpoint change so the placeholder swaps between full/concise copy at 540px.
5408+
// Re-run on resize so mode-driven placeholder updates stay in sync after layout changes.
54125409
if (typeof window !== 'undefined' && window.addEventListener) window.addEventListener('resize', _updateComposerPlaceholder);
54135410

54145411
// Observe data-mode changes so placeholder updates on lock toggle

0 commit comments

Comments
 (0)