Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
aef0cb98
Verified
Commit
aef0cb98
authored
1 year ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Show reactions again
parent
2360dfd8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/qml/MessageView.qml
+38
-2
38 additions, 2 deletions
resources/qml/MessageView.qml
with
38 additions
and
2 deletions
resources/qml/MessageView.qml
+
38
−
2
View file @
aef0cb98
...
...
@@ -63,7 +63,7 @@ Item {
id
:
wrapper
ListView.delayRemove
:
true
width
:
chat
.
delegateMaxWidth
height
:
Math
.
max
((
section
.
item
?.
height
??
0
)
+
gridContainer
.
implicitHeight
,
10
)
height
:
Math
.
max
((
section
.
item
?.
height
??
0
)
+
gridContainer
.
implicitHeight
+
reactionRow
.
implicitHeight
+
unreadRow
.
height
,
10
)
anchors.horizontalCenter
:
ListView
.
view
.
contentItem
.
horizontalCenter
//room: chatRoot.roommodel
...
...
@@ -81,6 +81,10 @@ Item {
required
property
string
userId
required
property
string
userName
required
property
string
threadId
required
property
int
userPowerlevel
required
property
var
reactions
property
int
avatarMargin
:
(
wrapper
.
isStateEvent
||
Settings
.
smallAvatars
?
0
:
(
Nheko
.
avatarSize
+
8
))
+
(
wrapper
.
threadId
?
6
:
0
)
// align bubble with section header
data
:
[
Loader
{
...
...
@@ -96,6 +100,7 @@ Item {
property
date
timestamp
:
wrapper
.
timestamp
property
string
userId
:
wrapper
.
userId
property
string
userName
:
wrapper
.
userName
property
string
userPowerlevel
:
wrapper
.
userPowerlevel
active
:
previousMessageUserId
!==
userId
||
previousMessageDay
!==
day
||
previousMessageIsStateEvent
!==
isStateEvent
//asynchronous: true
...
...
@@ -112,7 +117,7 @@ Item {
ColumnLayout
{
id
:
contentColumn
Layout.fillWidth
:
true
Layout.leftMargin
:
(
wrapper
.
isStateEvent
||
Settings
.
smallAvatars
?
0
:
(
Nheko
.
avatarSize
+
8
))
+
(
wrapper
.
threadId
?
6
:
0
)
// align bubble with section header
Layout.leftMargin
:
wrapper
.
avatarMargin
// align bubble with section header
AbstractButton
{
id
:
replyRow
...
...
@@ -179,6 +184,37 @@ Item {
}
},
Reactions
{
id
:
reactionRow
eventId
:
wrapper
.
eventId
layoutDirection
:
row
.
bubbleOnRight
?
Qt
.
RightToLeft
:
Qt
.
LeftToRight
reactions
:
wrapper
.
reactions
width
:
wrapper
.
width
-
wrapper
.
avatarMargin
x
:
wrapper
.
avatarMargin
anchors
{
//left: row.bubbleOnRight ? undefined : row.left
//right: row.bubbleOnRight ? row.right : undefined
top
:
gridContainer
.
bottom
topMargin
:
-
4
}
},
Rectangle
{
id
:
unreadRow
color
:
palette
.
highlight
height
:
visible
?
3
:
0
visible
:
(
wrapper
.
index
>
0
&&
(
room
.
fullyReadEventId
==
wrapper
.
eventId
))
anchors
{
left
:
parent
.
left
right
:
parent
.
right
top
:
reactionRow
.
bottom
topMargin
:
5
}
},
Rectangle
{
width
:
Math
.
min
(
contentColumn
.
implicitWidth
,
contentColumn
.
width
)
height
:
contentColumn
.
implicitHeight
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment