From 7df7b0579c2ea6a10af76289293dc3d2de1f9c28 Mon Sep 17 00:00:00 2001 From: aiongg Date: Thu, 12 Nov 2026 06:03:43 +0000 Subject: [PATCH] Slicer: the card pads its header and tiles --- crates/table/src/ui/slicer.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/table/src/ui/slicer.rs b/crates/table/src/ui/slicer.rs index c82e39103..3cfc8b2df 100644 --- a/crates/table/src/ui/slicer.rs +++ b/crates/table/src/ui/slicer.rs @@ -8,7 +8,7 @@ use craft_theme::variant::{Emphasis, Tone}; use craft_ui::buttons::IconButton; use craft_ui::contract::{ ActivateOn, BodyCx, Collection, CollectionEvent, CollectionProps, CollectionResponse, Common, Component, Container, ContainerProps, Cx, - HeaderRegion, NoValue, Outcome, PaintUi, Pattern, Props, Role, SelectMode, Show as _, ShowCollection as _, ShowContainer as _, Sizing, + HeaderRegion, NoValue, Outcome, Pad, PaintUi, Pattern, Props, Role, SelectMode, Show as _, ShowCollection as _, ShowContainer as _, Sizing, Styled as _, WordSetCx as _, clicked, }; use craft_ui::display::Text; @@ -196,6 +196,7 @@ impl SlicerCard { fn new(caption: Label, filtered: bool) -> Self { let props = ContainerProps::new() .surface(SurfaceKind::Raised) + .pad(Pad::Control) .sizing(Sizing::Fill) .header(HeaderRegion::new().rule(true).trailing(true)) .collection_body();