Merge pull request #307 from git-f0x/master

Match divider padding to design
This commit is contained in:
Jeremy Soller 2024-07-31 08:07:22 -06:00 committed by GitHub
commit 5f8d25e4d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ use cosmic::{
subscription::{self, Subscription}, subscription::{self, Subscription},
//TODO: export in cosmic::widget //TODO: export in cosmic::widget
widget::{ widget::{
horizontal_rule, container, horizontal_rule,
scrollable::{AbsoluteOffset, Viewport}, scrollable::{AbsoluteOffset, Viewport},
}, },
Alignment, Alignment,
@ -2651,7 +2651,7 @@ impl Tab {
))); )));
if count > 0 { if count > 0 {
children.push(horizontal_rule(1).into()); children.push(container(horizontal_rule(1)).padding([0, space_xxxs]).into());
y += 1; y += 1;
} }
@ -2880,7 +2880,7 @@ impl Tab {
( (
drag_col, drag_col,
mouse_area::MouseArea::new( 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")) .with_id(Id::new("list-view"))
.on_press(|_| Message::Click(None)) .on_press(|_| Message::Click(None))