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
a703e6f0
Verified
Commit
a703e6f0
authored
3 years ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Remove double padding on redactions
parent
a5bfc833
No related branches found
No related tags found
No related merge requests found
Pipeline
#2183
passed
3 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/qml/delegates/Redacted.qml
+6
-3
6 additions, 3 deletions
resources/qml/delegates/Redacted.qml
with
6 additions
and
3 deletions
resources/qml/delegates/Redacted.qml
+
6
−
3
View file @
a703e6f0
...
@@ -10,7 +10,7 @@ import im.nheko 1.0
...
@@ -10,7 +10,7 @@ import im.nheko 1.0
Rectangle
{
Rectangle
{
required
property
real
delegateWidth
required
property
real
delegateWidth
height
:
redactedLayout
.
implicitHeight
+
2
*
Nheko
.
paddingSmall
height
:
redactedLayout
.
implicitHeight
+
Nheko
.
paddingSmall
width
:
redactedLayout
.
implicitWidth
+
2
*
Nheko
.
paddingMedium
width
:
redactedLayout
.
implicitWidth
+
2
*
Nheko
.
paddingMedium
radius
:
fontMetrics
.
lineSpacing
/
2
+
2
*
Nheko
.
paddingSmall
radius
:
fontMetrics
.
lineSpacing
/
2
+
2
*
Nheko
.
paddingSmall
color
:
Nheko
.
colors
.
alternateBase
color
:
Nheko
.
colors
.
alternateBase
...
@@ -18,6 +18,8 @@ Rectangle{
...
@@ -18,6 +18,8 @@ Rectangle{
RowLayout
{
RowLayout
{
id
:
redactedLayout
id
:
redactedLayout
anchors.centerIn
:
parent
anchors.centerIn
:
parent
spacing
:
Nheko
.
paddingSmall
Image
{
Image
{
id
:
trashImg
id
:
trashImg
Layout.alignment
:
Qt
.
AlignLeft
|
Qt
.
AlignVCenter
Layout.alignment
:
Qt
.
AlignLeft
|
Qt
.
AlignVCenter
...
@@ -27,13 +29,14 @@ Rectangle{
...
@@ -27,13 +29,14 @@ Rectangle{
}
}
Label
{
Label
{
id
:
redactedLabel
id
:
redactedLabel
Layout.margins
:
Nheko
.
paddingSmall
Layout.margins
:
0
Layout.alignment
:
Qt
.
AlignVCenter
|
Qt
.
AlignRight
Layout.alignment
:
Qt
.
AlignVCenter
|
Qt
.
AlignRight
Layout.fillWidth
:
true
Layout.fillWidth
:
true
Layout.maximumWidth
:
delegateWidth
-
4
*
Nheko
.
paddingSmall
-
trashImg
.
width
-
2
*
Nheko
.
paddingMedium
Layout.maximumWidth
:
delegateWidth
-
4
*
Nheko
.
paddingSmall
-
trashImg
.
width
-
2
*
Nheko
.
paddingMedium
property
var
redactedPair
:
room
.
formatRedactedEvent
(
eventId
)
property
var
redactedPair
:
room
.
formatRedactedEvent
(
eventId
)
text
:
redactedPair
[
"
first
"
]
text
:
redactedPair
[
"
first
"
]
wrapMode
:
Label
.
WordWrap
wrapMode
:
Label
.
WordWrap
color
:
Nheko
.
colors
.
text
ToolTip.text
:
redactedPair
[
"
second
"
]
ToolTip.text
:
redactedPair
[
"
second
"
]
ToolTip.visible
:
hh
.
hovered
ToolTip.visible
:
hh
.
hovered
...
@@ -42,4 +45,4 @@ Rectangle{
...
@@ -42,4 +45,4 @@ Rectangle{
}
}
}
}
}
}
}
}
\ No newline at end of file
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