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
a0c2a174
Commit
a0c2a174
authored
4 years ago
by
kamathmanu
Browse files
Options
Downloads
Patches
Plain Diff
Display filename on mouse hover
parent
716992b7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/qml/delegates/ImageMessage.qml
+30
-1
30 additions, 1 deletion
resources/qml/delegates/ImageMessage.qml
with
30 additions
and
1 deletion
resources/qml/delegates/ImageMessage.qml
+
30
−
1
View file @
a0c2a174
...
...
@@ -31,11 +31,40 @@ Item {
fillMode
:
Image
.
PreserveAspectFit
MouseArea
{
id
:
mouseArea
enabled
:
model
.
data
.
type
==
MtxEvent
.
ImageMessage
&&
img
.
status
==
Image
.
Ready
hoverEnabled
:
true
anchors.fill
:
parent
onClicked
:
TimelineManager
.
openImageOverlay
(
model
.
data
.
url
,
model
.
data
.
id
)
}
}
Item
{
id
:
overlay
anchors.fill
:
parent
visible
:
mouseArea
.
containsMouse
Rectangle
{
id
:
container
width
:
parent
.
width
implicitHeight
:
imgcaption
.
implicitHeight
anchors.bottom
:
overlay
.
bottom
color
:
"
black
"
opacity
:
0.75
Text
{
id
:
imgcaption
anchors.fill
:
parent
elide
:
Text
.
ElideMiddle
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
// See this MSC: https://github.com/matrix-org/matrix-doc/pull/2530
text
:
model
.
data
.
filename
?
model
.
data
.
filename
:
model
.
data
.
body
font.pointSize
:
11
color
:
"
white
"
}
}
}
}
}
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