fix: tab padding
This commit is contained in:
parent
5b1ba068d1
commit
32a2ccbaf6
2 changed files with 8 additions and 3 deletions
|
|
@ -2389,7 +2389,9 @@ impl Application for App {
|
|||
|
||||
/// Creates a view after each update.
|
||||
fn view(&self) -> Element<Self::Message> {
|
||||
let cosmic_theme::Spacing { space_xxs, .. } = theme::active().cosmic().spacing;
|
||||
let cosmic_theme::Spacing {
|
||||
space_xxs, space_s, ..
|
||||
} = theme::active().cosmic().spacing;
|
||||
|
||||
let mut tab_column = widget::column::with_capacity(1);
|
||||
|
||||
|
|
@ -2409,7 +2411,8 @@ impl Application for App {
|
|||
.drag_id(self.tab_drag_id),
|
||||
)
|
||||
.style(style::Container::Background)
|
||||
.width(Length::Fill),
|
||||
.width(Length::Fill)
|
||||
.padding([0, space_s]),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1925,7 +1925,9 @@ impl Tab {
|
|||
} = theme::active().cosmic().spacing;
|
||||
let size = self.size_opt.get().unwrap_or(Size::new(0.0, 0.0));
|
||||
|
||||
let mut row = widget::row::with_capacity(5).align_items(Alignment::Center);
|
||||
let mut row = widget::row::with_capacity(5)
|
||||
.align_items(Alignment::Center)
|
||||
.padding([space_xxxs, 0]);
|
||||
let mut w = 0.0;
|
||||
|
||||
let mut prev_button =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue