public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH datacenter-manager 1/2] ui: configuration: options: don't show vertical scrollbar for field
@ 2026-11-30 14:29 Dominik Csapak
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Dominik Csapak @ 2026-11-30 14:29 UTC (permalink / raw)
  To: pdm-devel

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





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH datacenter-manager 2/2] ui: configuration: options: don't use large child for hints
  2026-11-30 14:29 [PATCH datacenter-manager 1/2] ui: configuration: options: don't show vertical scrollbar for field Dominik Csapak
@ 2026-11-30 14:29 ` 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
  1 sibling, 0 replies; 3+ messages in thread
From: Dominik Csapak @ 2026-11-30 14:29 UTC (permalink / raw)
  To: pdm-devel

The hints are size restricted, but a 'large' child doubles the width of
the input panel, leaving a large unused space there.

Simply use a normal-sized custom child to show the hint.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 ui/src/configuration/options.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/src/configuration/options.rs b/ui/src/configuration/options.rs
index 86ee947b..12daddae 100644
--- a/ui/src/configuration/options.rs
+++ b/ui/src/configuration/options.rs
@@ -97,7 +97,7 @@ thread_local! {
                     "remote-task-max-days",
                     &REMOTE_TASK_MAX_DAYS_SCHEMA,
                 )
-                .with_large_custom_child(hint(tr!(
+                .with_custom_child(hint(tr!(
                     "The current day counts as one day, days start at 00:00 UTC. Lowering the \
                     value permanently removes older tasks within an hour."
                 )))
@@ -117,7 +117,7 @@ thread_local! {
                     "task-log-max-days",
                     &TASK_LOG_MAX_DAYS_SCHEMA,
                 )
-                .with_large_custom_child(hint(tr!(
+                .with_custom_child(hint(tr!(
                     "Whole archive files are removed, so task logs may be kept longer. Lowering \
                     the value permanently removes older archives at midnight."
                 )))
-- 
2.47.3





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* applied: [PATCH datacenter-manager 1/2] ui: configuration: options: don't show vertical scrollbar for field
  2026-11-30 14:29 [PATCH datacenter-manager 1/2] ui: configuration: options: don't show vertical scrollbar for field Dominik Csapak
  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 ` Thomas Lamprecht
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Lamprecht @ 2026-11-30 20:15 UTC (permalink / raw)
  To: pdm-devel, Dominik Csapak

On Mon, 30 Nov 2026 15:29:57 +0100, Dominik Csapak wrote:
> 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).
> 
> [...]

Applied, thanks!

[1/2] ui: configuration: options: don't show vertical scrollbar for field
      commit: 2409c98b2ba9e89d357a828d16d2e7f85a930f1c
[2/2] ui: configuration: options: don't use large child for hints
      commit: 3048c46a802ea2d712dbbc7ef6686cd3c57cdc28




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-30 20:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 14:29 [PATCH datacenter-manager 1/2] ui: configuration: options: don't show vertical scrollbar for field Dominik Csapak
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal