From 4129ab9122d242dc5a0358695fcf3ab3a456f621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vuka=C5=A1in=20Vojinovi=C4=87?= <150025636+git-f0x@users.noreply.github.com> Date: Wed, 31 Jul 2024 15:58:17 +0200 Subject: [PATCH] fix: match divider padding to design --- src/tab.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tab.rs b/src/tab.rs index 37f444a..5540509 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -12,7 +12,7 @@ use cosmic::{ subscription::{self, Subscription}, //TODO: export in cosmic::widget widget::{ - horizontal_rule, + container, horizontal_rule, scrollable::{AbsoluteOffset, Viewport}, }, Alignment, @@ -2651,7 +2651,7 @@ impl Tab { ))); if count > 0 { - children.push(horizontal_rule(1).into()); + children.push(container(horizontal_rule(1)).padding([0, space_xxxs]).into()); y += 1; } @@ -2880,7 +2880,7 @@ impl Tab { ( drag_col, mouse_area::MouseArea::new( - widget::column::with_children(children).padding([0, space_s + 4]), + widget::column::with_children(children).padding([0, space_s]), ) .with_id(Id::new("list-view")) .on_press(|_| Message::Click(None))