fix: change chat rectangle width to match designs

This commit is contained in:
Jonathan Rainville 2020-11-20 10:28:32 -05:00 committed by Iuri Matias
parent 8890805a14
commit 9e8ecd69e9
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ Item {
Rectangle {
readonly property int defaultMessageWidth: 400
readonly property int defaultMaxMessageChars: 54
readonly property int messageWidth: Math.max(defaultMessageWidth, parent.width / 2)
readonly property int messageWidth: Math.max(defaultMessageWidth, parent.width / 1.4)
readonly property int maxMessageChars: (defaultMaxMessageChars * messageWidth) / defaultMessageWidth
property int chatVerticalPadding: isImage ? 4 : 6
property int chatHorizontalPadding: isImage ? 0 : 12