Remove when_else
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
This commit is contained in:
parent
393be3cedf
commit
7c19650a40
3 changed files with 20 additions and 32 deletions
|
@ -98,11 +98,13 @@ impl RenderOnce for Key {
|
|||
|
||||
div()
|
||||
.py_0()
|
||||
.when_else(
|
||||
single_char,
|
||||
|el| el.w(rems(14. / 16.)).flex().flex_none().justify_center(),
|
||||
|el| el.px_0p5(),
|
||||
)
|
||||
.map(|this| {
|
||||
if single_char {
|
||||
this.w(rems(14. / 16.)).flex().flex_none().justify_center()
|
||||
} else {
|
||||
this.px_0p5()
|
||||
}
|
||||
})
|
||||
.h(rems(14. / 16.))
|
||||
.text_ui()
|
||||
.line_height(relative(1.))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue