mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-05 18:25:58 +03:00
Prettify a long expression
This commit is contained in:
parent
7c6b8c4b4f
commit
3978efc1bf
@ -21,13 +21,10 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
Layout.minimumHeight: {
|
||||
var baseHeight = issuerLbl.height
|
||||
+ codeLbl.height + nameLbl.height + 10
|
||||
return hasCustomTimeBar(
|
||||
model.credential) ? baseHeight
|
||||
+ 10 : baseHeight
|
||||
}
|
||||
Layout.minimumHeight: (
|
||||
10 + issuerLbl.height + codeLbl.height + nameLbl.height
|
||||
+ (hasCustomTimeBar(model.credential) ? 10 : 0)
|
||||
)
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignTop
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user