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
1da3f2e1
Verified
Commit
1da3f2e1
authored
3 years ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Add ugly borders to tables
parent
7f4656d3
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/TextMessage.qml
+18
-1
18 additions, 1 deletion
resources/qml/delegates/TextMessage.qml
with
18 additions
and
1 deletion
resources/qml/delegates/TextMessage.qml
+
18
−
1
View file @
1da3f2e1
...
...
@@ -9,7 +9,24 @@ MatrixText {
property
string
formatted
:
model
.
data
.
formattedBody
property
string
copyText
:
selectedText
?
getText
(
selectionStart
,
selectionEnd
)
:
model
.
data
.
body
text
:
"
<style type=
\"
text/css
\"
>a { color:
"
+
Nheko
.
colors
.
link
+
"
;}
\n
code { background-color:
"
+
Nheko
.
colors
.
alternateBase
+
"
;}</style>
"
+
formatted
.
replace
(
"
<pre>
"
,
"
<pre style='white-space: pre-wrap; background-color:
"
+
Nheko
.
colors
.
alternateBase
+
"
'>
"
).
replace
(
"
<del>
"
,
"
<s>
"
).
replace
(
"
</del>
"
,
"
</s>
"
).
replace
(
"
<strike>
"
,
"
<s>
"
).
replace
(
"
</strike>
"
,
"
</s>
"
)
// table border-collapse doesn't seem to work
text
:
"
<style type=
\"
text/css
\"
>
a { color:
"
+
Nheko
.
colors
.
link
+
"
;}
code { background-color:
"
+
Nheko
.
colors
.
alternateBase
+
"
;}
table {
border-width: 1px;
border-collapse: collapse;
border-style: solid;
}
table th,
table td {
bgcolor:
"
+
Nheko
.
colors
.
alternateBase
+
"
;
border-collapse: collapse;
border: 1px solid
"
+
Nheko
.
colors
.
text
+
"
;
}
</style>
"
+
formatted
.
replace
(
"
<pre>
"
,
"
<pre style='white-space: pre-wrap; background-color:
"
+
Nheko
.
colors
.
alternateBase
+
"
'>
"
).
replace
(
"
<del>
"
,
"
<s>
"
).
replace
(
"
</del>
"
,
"
</s>
"
).
replace
(
"
<strike>
"
,
"
<s>
"
).
replace
(
"
</strike>
"
,
"
</s>
"
)
width
:
parent
?
parent
.
width
:
undefined
height
:
isReply
?
Math
.
round
(
Math
.
min
(
timelineView
.
height
/
8
,
implicitHeight
))
:
undefined
clip
:
isReply
...
...
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