Commit d0778b4e authored by Ronan Abhamon's avatar Ronan Abhamon

fix(Chat/OutgoingMessage): fix placement of `valid` icon

parent 38725089
...@@ -21,7 +21,7 @@ RowLayout { ...@@ -21,7 +21,7 @@ RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
// Not a style. Workaround to avoid a 0 width. // Not a style. Workaround to avoid a 0 width.
Layout.minimumWidth: 0 Layout.minimumWidth: 20
backgroundColor: '#BFBFBF' backgroundColor: '#BFBFBF'
} }
......
...@@ -25,8 +25,11 @@ Item { ...@@ -25,8 +25,11 @@ Item {
Text { Text {
id: text id: text
anchors.left: container.left anchors {
anchors.right: container.right left: container.left
right: container.right
}
padding: 8 padding: 8
text: $content text: $content
wrapMode: Text.Wrap wrapMode: Text.Wrap
...@@ -37,7 +40,6 @@ Item { ...@@ -37,7 +40,6 @@ Item {
Item { Item {
id: content id: content
anchors.left: rectangle.right anchors.left: rectangle.right
} }
} }
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3
import Common 1.0 import Common 1.0
import Linphone 1.0 import Linphone 1.0
RowLayout { Item {
implicitHeight: message.height implicitHeight: message.height
spacing: 10 width: parent.width - 16
Message { Message {
id: message id: message
Layout.fillWidth: true anchors {
left: parent.left
// Not a style. Workaround to avoid a 0 width. right: parent.right
Layout.minimumWidth: 20 }
backgroundColor: '#E4E4E4' backgroundColor: '#E4E4E4'
}
// TODO: Success and re-send icon.
Icon {
Layout.alignment: Qt.AlignTop
Layout.preferredHeight: 16
Layout.preferredWidth: 16
icon: 'valid' // TODO: Success and re-send icon.
Icon {
iconSize: 16
icon: 'valid'
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment