[PATCH proxmox-yew-comp v2 17/25] RRDGrid: add padding and increase gap between elements

Lukas Wagner
2026-03-19T09:47:01Z

This seems visually a tiny bit nicer and avoids the overflow scrollbar
covering child elements.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Arthur Bied-Charreton <a.bied-charreton@proxmox.com>
Tested-by: Arthur Bied-Charreton <a.bied-charreton@proxmox.com>
---
src/rrd_grid.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/rrd_grid.rs b/src/rrd_grid.rs
index 10f1db7..271401b 100644
--- a/src/rrd_grid.rs
+++ b/src/rrd_grid.rs
@@ -69,7 +69,8 @@ impl Component for ProxmoxRRDGrid {
.with_child(
Container::new()
.class(Display::Grid)
- .class("pwt-gap-2 pwt-w-100")
+ .class("pwt-gap-4 pwt-w-100")
+ .padding(4)
.attribute(
"style",
format!("grid-template-columns:repeat({}, 1fr);", self.cols),
--
2.47.3