mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-05 21:04:14 -04:00
Set msg preview text maximum length
This commit is contained in:
parent
85724a39eb
commit
f3c37886b4
1 changed files with 10 additions and 8 deletions
|
@ -91,6 +91,7 @@ Item
|
||||||
Column
|
Column
|
||||||
{
|
{
|
||||||
|
|
||||||
|
id: chatInfoRow
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: parent.width - (isContactIcon.width *3.5)
|
width: parent.width - (isContactIcon.width *3.5)
|
||||||
anchors.left: colorHash.right
|
anchors.left: colorHash.right
|
||||||
|
@ -129,26 +130,29 @@ Item
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height /2
|
height: parent.height /2
|
||||||
|
|
||||||
|
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
id: lastMessageSender
|
id: lastMessageSender
|
||||||
font.italic: true
|
font.italic: true
|
||||||
color: "dodgerblue"
|
color: "dodgerblue"
|
||||||
text: (!lastMessageData.incoming && lastMessageData.msg)? "You: " : ""
|
text: (!lastMessageData.incoming && lastMessageData.msg)? "You: " : ""
|
||||||
maximumLineCount: 1
|
// width: 50
|
||||||
elide:Text.ElideRight
|
|
||||||
wrapMode: Text.WordWrap
|
// maximumLineCount: 1
|
||||||
|
// elide:Text.ElideRight
|
||||||
|
// wrapMode: Text.WordWrap
|
||||||
}
|
}
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
id: lastMessageMsg
|
id: lastMessageMsg
|
||||||
|
anchors.left: lastMessageSender.right
|
||||||
text: (lastMessageData.msg) ? lastMessageData.msg : ""
|
text: (lastMessageData.msg) ? lastMessageData.msg : ""
|
||||||
font.italic: true
|
font.italic: true
|
||||||
rightPadding: 5
|
rightPadding: 5
|
||||||
// maximumLineCount: 1
|
elide: Text.ElideRight
|
||||||
// elide:Text.ElideRight
|
|
||||||
// wrapMode: Text.WordWrap
|
|
||||||
|
|
||||||
|
width: chatInfoRow.width - 30
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
|
@ -157,8 +161,6 @@ Item
|
||||||
|
|
||||||
color: "cornflowerblue"
|
color: "cornflowerblue"
|
||||||
antialiasing: true
|
antialiasing: true
|
||||||
// border.color: "blue"
|
|
||||||
// border.width: 1
|
|
||||||
height: parent.height - 2
|
height: parent.height - 2
|
||||||
radius: height/2
|
radius: height/2
|
||||||
width: height
|
width: height
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue