mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-21 18:50:47 +03:00
Shrink replies
This commit is contained in:
parent
a86e364d1a
commit
b0df40496d
4 changed files with 4 additions and 4 deletions
|
@ -229,7 +229,7 @@ TimelineEvent {
|
|||
|
||||
Rectangle {
|
||||
id: replyLine
|
||||
height: Math.min( wrapper.reply?.height, timelineView.height / 5) + Nheko.paddingSmall + replyUserButton.height
|
||||
height: Math.min( wrapper.reply?.height, timelineView.height / 10) + Nheko.paddingSmall + replyUserButton.height
|
||||
color: replyRow.userColor
|
||||
width: 4
|
||||
}
|
||||
|
|
|
@ -217,7 +217,7 @@ TimelineEvent {
|
|||
|
||||
Rectangle {
|
||||
id: replyLine
|
||||
height: Math.min( wrapper.reply?.height, timelineView.height / 5) + Nheko.paddingSmall + replyUserButton.height
|
||||
height: Math.min( wrapper.reply?.height, timelineView.height / 10) + Nheko.paddingSmall + replyUserButton.height
|
||||
color: replyRow.userColor
|
||||
width: 4
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ AbstractButton {
|
|||
required property string filename
|
||||
required property string eventId
|
||||
required property int containerHeight
|
||||
property double divisor: EventDelegateChooser.isReply ? 5 : 3
|
||||
property double divisor: EventDelegateChooser.isReply ? 10 : 4
|
||||
|
||||
EventDelegateChooser.keepAspectRatio: true
|
||||
EventDelegateChooser.maxWidth: originalWidth
|
||||
|
|
|
@ -22,7 +22,7 @@ Item {
|
|||
required property string url
|
||||
required property string body
|
||||
required property string filesize
|
||||
property double divisor: EventDelegateChooser.isReply ? 5 : 3
|
||||
property double divisor: EventDelegateChooser.isReply ? 10 : 4
|
||||
property int tempWidth: originalWidth < 1? 400: originalWidth
|
||||
implicitWidth: type == MtxEvent.VideoMessage ? Math.round(tempWidth*Math.min((timelineView.height/divisor)/(tempWidth*proportionalHeight), 1)) : 500
|
||||
width: Math.min(parent?.width ?? implicitWidth, implicitWidth)
|
||||
|
|
Loading…
Reference in a new issue