Unbreak toolbar layout & improve disabling ButtonLike

This commit is contained in:
Julia 2023-12-01 10:33:44 -05:00
parent d516ae0d8a
commit ce16e5b54a
3 changed files with 30 additions and 34 deletions

View file

@ -250,7 +250,7 @@ impl RenderOnce for ButtonLike {
.id(self.id.clone())
.h(self.size.height())
.rounded_md()
.cursor_pointer()
.when(!self.disabled, |el| el.cursor_pointer())
.gap_1()
.px_1()
.bg(self.style.enabled(cx).background)