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
0a3aeb0a
Verified
Commit
0a3aeb0a
authored
1 year ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Fix timeline menus
parent
1744f38e
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
+37
-4
37 additions, 4 deletions
resources/qml/MessageView.qml
with
37 additions
and
4 deletions
resources/qml/MessageView.qml
+
37
−
4
View file @
0a3aeb0a
...
...
@@ -84,9 +84,13 @@ Item {
required
property
var
reactions
required
property
int
status
required
property
int
trustlevel
required
property
int
type
required
property
bool
isEditable
property
int
avatarMargin
:
(
wrapper
.
isStateEvent
||
Settings
.
smallAvatars
?
0
:
(
Nheko
.
avatarSize
+
8
))
// align bubble with section header
property
alias
hovered
:
messageHover
.
hovered
data
:
[
Loader
{
id
:
section
...
...
@@ -109,6 +113,19 @@ Item {
visible
:
status
==
Loader
.
Ready
z
:
4
},
Rectangle
{
anchors.fill
:
gridContainer
color
:
(
Settings
.
messageHoverHighlight
&&
messageHover
.
hovered
)
?
palette
.
alternateBase
:
"
transparent
"
// this looks better without margins
TapHandler
{
acceptedButtons
:
Qt
.
RightButton
acceptedDevices
:
PointerDevice
.
Mouse
|
PointerDevice
.
Stylus
|
PointerDevice
.
TouchPad
gesturePolicy
:
TapHandler
.
ReleaseWithinBounds
onSingleTapped
:
messageContextMenu
.
show
(
wrapper
.
eventId
,
wrapper
.
threadId
,
wrapper
.
type
,
wrapper
.
isSender
,
wrapper
.
isEncrypted
,
wrapper
.
isEditable
,
wrapper
.
main
.
hoveredLink
,
wrapper
.
main
.
copyText
)
}
},
RowLayout
{
id
:
gridContainer
...
...
@@ -276,7 +293,23 @@ Item {
}
}
},
Item
{
id
:
messageActionsAnchor
anchors.fill
:
gridContainer
property
alias
hovered
:
messageHover
.
hovered
HoverHandler
{
id
:
messageHover
onHoveredChanged
:
()
=>
{
if
(
!
Settings
.
mobileMode
&&
hovered
)
{
if
(
!
messageActions
.
hovered
)
{
messageActions
.
model
=
wrapper
;
messageActions
.
attached
=
wrapper
;
messageActions
.
anchors
.
bottomMargin
=
-
gridContainer
.
y
}
}
}
}
},
Reactions
{
id
:
reactionRow
...
...
@@ -346,15 +379,15 @@ Item {
property
Item
attached
:
null
// use comma to update on scroll
property
var
attachedPos
:
chat
.
contentY
,
attached
?
chat
.
mapFromItem
(
attached
,
attached
?
attached
.
width
-
width
:
0
,
-
height
)
:
null
property
alias
model
:
row
.
model
hoverEnabled
:
true
padding
:
Nheko
.
paddingSmall
visible
:
Settings
.
buttonsInTimeline
&&
!!
attached
&&
(
attached
.
hovered
||
hovered
)
x
:
attached
?
attachedPos
.
x
:
0
y
:
attached
?
attachedPos
.
y
+
Nheko
.
paddingSmall
:
0
z
:
10
parent
:
chat
.
contentItem
anchors.bottom
:
attached
?.
top
anchors.right
:
attached
?.
right
background
:
Rectangle
{
border.color
:
palette
.
buttonText
...
...
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