dropdown_button: Add compact style (#555)

This commit is contained in:
Floyd Wang 2025-01-20 13:49:42 +08:00 committed by GitHub
parent bd3cdd7167
commit 06e9b1a25c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,6 +57,11 @@ impl DropdownButton {
self.rounded = rounded.into();
self
}
pub fn compact(mut self) -> Self {
self.compact = Some(true);
self
}
}
impl Styled for DropdownButton {