Skip to content

Commit 993918f

Browse files
committed
fix(stack): correct padding of tab elements
1 parent 2051f49 commit 993918f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/shell/element/stack/tab.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl<Message: TabMessage + 'static> Tab<Message> {
201201
.clone()
202202
.apply(widget::container)
203203
.width(Length::Shrink)
204-
.padding([2, 4])
204+
.padding([2, 4, 2, 8])
205205
.center_y(Length::Fill)
206206
.into(),
207207
tab_text(self.title, self.active)
@@ -213,7 +213,7 @@ impl<Message: TabMessage + 'static> Tab<Message> {
213213
close_button
214214
.apply(widget::container)
215215
.width(Length::Shrink)
216-
.padding([2, 4])
216+
.padding([2, 12, 2, 4])
217217
.center_y(Length::Fill)
218218
.align_x(alignment::Horizontal::Right)
219219
.into(),
@@ -305,8 +305,8 @@ where
305305
&limits,
306306
Length::Fill,
307307
Length::Fill,
308-
0.into(),
309-
8.,
308+
Padding::ZERO,
309+
0.,
310310
cosmic::iced::Alignment::Center,
311311
if size.width >= CLOSE_BREAKPOINT as f32 {
312312
&self.elements

0 commit comments

Comments
 (0)