fix(widget/button: padding causing misaligned text in button

This commit is contained in:
Michael Aaron Murphy 2023-08-15 10:53:34 +02:00 committed by Michael Murphy
parent a387adcb1b
commit e3f3dc2e82

View file

@ -51,7 +51,7 @@ impl<Message: 'static> Button<Message> {
let theme = theme.cosmic();
let button = widget::button(widget::row(children).spacing(8))
.style(self.style)
.padding([theme.space_xs(), theme.space_s()]);
.padding([theme.space_xxs(), theme.space_s()]);
if let Some(message) = self.message {
button.on_press(message)