Fix more non integer heights

master
Nicolas Werner 4 years ago
parent fdcf91f5eb
commit cbb4356b19
  1. 4
      resources/qml/delegates/ImageMessage.qml
  2. 2
      resources/qml/delegates/PlayableMediaMessage.qml

@ -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…
Cancel
Save