mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +03:00
Fix more non integer heights
This commit is contained in:
parent
fdcf91f5eb
commit
cbb4356b19
2 changed files with 3 additions and 3 deletions
|
@ -9,8 +9,8 @@ Item {
|
||||||
property double divisor: model.isReply ? 4 : 2
|
property double divisor: model.isReply ? 4 : 2
|
||||||
property bool tooHigh: tempHeight > timelineRoot.height / divisor
|
property bool tooHigh: tempHeight > timelineRoot.height / divisor
|
||||||
|
|
||||||
height: tooHigh ? timelineRoot.height / divisor : tempHeight
|
height: Math.round(tooHigh ? timelineRoot.height / divisor : tempHeight)
|
||||||
width: tooHigh ? (timelineRoot.height / divisor) / model.data.proportionalHeight : tempWidth
|
width: Math.round(tooHigh ? (timelineRoot.height / divisor) / model.data.proportionalHeight : tempWidth)
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: blurhash
|
id: blurhash
|
||||||
|
|
|
@ -9,7 +9,7 @@ Rectangle {
|
||||||
id: bg
|
id: bg
|
||||||
radius: 10
|
radius: 10
|
||||||
color: colors.dark
|
color: colors.dark
|
||||||
height: content.height + 24
|
height: Math.round(content.height + 24)
|
||||||
width: parent ? parent.width : undefined
|
width: parent ? parent.width : undefined
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
Loading…
Reference in a new issue