From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH datacenter-manager 1/2] ui: configuration: options: don't show vertical scrollbar for field
Date: Mon, 30 Nov 2026 15:29:57 +0100 [thread overview]
Message-ID: <20261130143002.3180328-1-d.csapak@proxmox.com> (raw)
When there is a single input field (like for the metric collection), the
label text is split across two lines, which makes the label overflow
vertically. On chrome, this showed a scrollbar.
Add a single unit of vertical padding in the input panel to prevent that
(Overflow into padding does not cause a scrollbar here).
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
ui/src/configuration/options.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/ui/src/configuration/options.rs b/ui/src/configuration/options.rs
index 91505f3d..86ee947b 100644
--- a/ui/src/configuration/options.rs
+++ b/ui/src/configuration/options.rs
@@ -135,6 +135,7 @@ fn input_panel(label: String, field: impl Labelable) -> InputPanel {
InputPanel::new()
.class(pwt::css::FlexFit)
.padding_x(2)
+ .padding_y(1)
.with_field(label, field)
}
--
2.47.3
next reply other threads:[~2026-11-30 14:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 14:29 Dominik Csapak [this message]
2026-11-30 14:29 ` [PATCH datacenter-manager 2/2] ui: configuration: options: don't use large child for hints Dominik Csapak
2026-11-30 20:15 ` applied: [PATCH datacenter-manager 1/2] ui: configuration: options: don't show vertical scrollbar for field 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=20261130143002.3180328-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pdm-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