Skip to content
Snippets Groups Projects
Commit 5ebe73c9 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix image sizing

parent ced5cde9
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,6 @@ harbour-matrix.pro.user
*.autosave
RPMS
documentation.list
*.swp
*.sw*
/.gdb_history
/sysroot-dir/
......@@ -8,7 +8,7 @@ ColumnLayout {
Item {
id: imageContainer
width: Math.min(bubble.fullMessageWidth, image.sourceSize.width)
width: Math.min(bubble.fullMessageWidth, model.Width > 100 ? model.Width : bubble.fullMessageWidth)
height: width * model.ProportionalHeight
Image {
......@@ -34,12 +34,14 @@ ColumnLayout {
Text {
id: body
text: modelData.FormattedBody
visible: modelData.FormattedBody
text: modelData.Body
visible: modelData.Body
color: Theme.secondaryColor
wrapMode: Text.Wrap
width: imageContainer.width
font.pixelSize: Theme.fontSizeTiny
horizontalAlignment: model.IsSender ? Text.AlignRight : Text.AlignLeft
Layout.alignment: model.IsSender ? Qt.AlignRight : Qt.AlignLeft
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment