Lay out ntfy sink server URL and topic inputs on one line
Combines the ntfy server URL and topic fields into a single flex row separated by a "/" to visually communicate that they compose into one destination (server + topic), instead of stacking as two full-width rows. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XFUNZwCvz3kcod3352ZR2o
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
893464b3b1
commit
70d9956059
@@ -456,22 +456,25 @@ function SettingsPanel({ panel }: { panel: ReturnType<typeof useSettingsPanel> }
|
||||
<HelpIcon sectionId="alerts" label="Help: Ntfy sink" />
|
||||
</div>
|
||||
<div className="flex flex-col gap-2">
|
||||
<input
|
||||
type="text"
|
||||
placeholder="topic"
|
||||
value={ntfyTopicInput}
|
||||
onChange={(e) => setNtfyTopicInput(e.target.value)}
|
||||
onBlur={handleNtfyTopicBlur}
|
||||
className="rounded border border-border-soft bg-surface-1 px-2 py-1 text-xs text-text placeholder:text-text-subtle focus:border-border-strong focus:outline-none"
|
||||
/>
|
||||
<input
|
||||
type="text"
|
||||
placeholder="https://ntfy.sh"
|
||||
value={ntfyServerInput}
|
||||
onChange={(e) => setNtfyServerInput(e.target.value)}
|
||||
onBlur={handleNtfyServerBlur}
|
||||
className="rounded border border-border-soft bg-surface-1 px-2 py-1 text-xs text-text placeholder:text-text-subtle focus:border-border-strong focus:outline-none"
|
||||
/>
|
||||
<div className="flex items-center gap-1.5">
|
||||
<input
|
||||
type="text"
|
||||
placeholder="https://ntfy.sh"
|
||||
value={ntfyServerInput}
|
||||
onChange={(e) => setNtfyServerInput(e.target.value)}
|
||||
onBlur={handleNtfyServerBlur}
|
||||
className="min-w-0 flex-[2] rounded border border-border-soft bg-surface-1 px-2 py-1 text-xs text-text placeholder:text-text-subtle focus:border-border-strong focus:outline-none"
|
||||
/>
|
||||
<span className="shrink-0 text-xs text-text-faint" aria-hidden="true">/</span>
|
||||
<input
|
||||
type="text"
|
||||
placeholder="topic"
|
||||
value={ntfyTopicInput}
|
||||
onChange={(e) => setNtfyTopicInput(e.target.value)}
|
||||
onBlur={handleNtfyTopicBlur}
|
||||
className="min-w-0 flex-1 rounded border border-border-soft bg-surface-1 px-2 py-1 text-xs text-text placeholder:text-text-subtle focus:border-border-strong focus:outline-none"
|
||||
/>
|
||||
</div>
|
||||
{ntfyTestError && <div className="text-xs text-danger-text-strong">{ntfyTestError}</div>}
|
||||
{ntfyTestSuccess && <div className="text-xs text-text-secondary">Test notification sent.</div>}
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user