Dimmed buttons say why; the directory fits at 200% zoom (#507)
Checked against the style guide's design half: - Dimmed, not removed: the page already dims rather than hides, but a dimmed toolbar button kept its usual tooltip, so it looked broken. dim() sets the reason (Choose an item first, Open a feed to unsubscribe from it, Nothing to play in this item) and gives the usual tooltip back. The player's play-button sync leaves a dimmed one alone, and syncTools asks it to repaint so a playing item still says Pause. The admin page's Save says nothing has changed yet. - 200% zoom on a 320 px screen (160 CSS px): the app and admin page fit; the directory scrolled sideways, its name on one line, its header form beside it, its category grid at a 180 px minimum and the chart's words. Now its name wraps, the form takes its own line, the grid's minimum is the width, and long words break. - Tap targets at 320 px: the directory's tabs, chips, button and search box were 35-39 px, now 40; the page's checkbox rows were 26 px, now 40. The admin switches are iOS's 51x31 inside a taller row. - The directory's hovers sit inside (hover:hover). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RqkrVCCH8YcP2Y3i8VNYWA
This commit is contained in:
@@ -272,6 +272,10 @@ async function sendLink(title: string, url: string, btn?: HTMLElement){
|
||||
toast('Link copied');
|
||||
}
|
||||
|
||||
/// A button that cannot act now is dimmed in place, its tooltip saying why, and gets its usual
|
||||
/// tooltip back when it can (#507): dimmed with its usual one, it looked broken.
|
||||
function dim(b: HTMLButtonElement, why: string|null, usual: string){ b.disabled=!!why; b.title=why??usual; }
|
||||
const NO_FEED='Open a feed to unsubscribe from it', UNSUB='Unsubscribe from this feed';
|
||||
function toast(msg: string, bad?: boolean){
|
||||
const t=document.createElement('div'), box=$('#toasts');
|
||||
t.className='toast'+(bad?' bad':''); t.textContent=msg;
|
||||
|
||||
Reference in New Issue
Block a user