From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [PATCH yew-widget-toolkit-assets 0/3] material: 8px spacing, touch-sized controls
Date: Thu, 22 Oct 2026 19:40:59 +0200 [thread overview]
Message-ID: <20261022174334.2286071-1-t.lamprecht@proxmox.com> (raw)
Our material theme's 10px spacer puts its steps at 10, 20, 30 and
40px, off the 8dp grid that Material Design aligns components to, and
leaves a lot of room on desktops. Also, on phones, several controls are
smaller than a finger hits reliably.
This series lowers the Material default to 8px and keeps selected
controls at 44px where the primary pointer is coarse. The last patch
adds a root class that turns the touch sizes off, so an application
can offer that choice next to the density.
I checked it in Chromium with phone, tablet and desktop emulation in
the PVE mobile GUI and the PMG quarantine GUI and some other internal
UIs. FWICT, none of them needs changes but pages get about a fifth
tighter (more content visible and usable), and on a phone buttons grow
from 40px to 44px while list rows were already taller than that.
Updating the precompiled CSS is not sent along as part of the series and
needs a rebuild after applying, but that's purely mechanical.
Thomas Lamprecht (3):
material: give controls a fingertip-sized target on touch screens
material: reduce default spacing to 8px
material: let an application turn the touch-sized controls off
scss/introduction.md | 8 +++
scss/material/_theme_config_material.scss | 7 +--
scss/material/_theme_post_material.scss | 74 +++++++++++++++++++++++
3 files changed, 85 insertions(+), 4 deletions(-)
--
2.47.3
next reply other threads:[~2026-10-22 17:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 17:40 Thomas Lamprecht [this message]
2026-10-22 17:41 ` [PATCH yew-widget-toolkit-assets 1/3] material: give controls a fingertip-sized target on touch screens Thomas Lamprecht
2026-10-22 17:41 ` [PATCH yew-widget-toolkit-assets 2/3] material: reduce default spacing to 8px Thomas Lamprecht
2026-10-22 17:41 ` [PATCH yew-widget-toolkit-assets 3/3] material: let an application turn the touch-sized controls off Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261022174334.2286071-1-t.lamprecht@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=yew-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox