summary refs log tree commit diff
path: root/resources/qml/delegates
diff options
context:
space:
mode:
authortastytea <tastytea@tastytea.de>2021-09-04 14:52:33 +0200
committertastytea <tastytea@tastytea.de>2021-09-04 17:45:22 +0200
commitc122915c282cb2f0fdc5bed3645f399e66f50e3c (patch)
tree542c06a042be14131436b177d7ef9a66f4bd38b6 /resources/qml/delegates
parentTranslated using Weblate (Portuguese (Portugal)) (diff)
downloadnheko-c122915c282cb2f0fdc5bed3645f399e66f50e3c.tar.xz
Decrease left margins on blockquotes to 1em.
It is intentionally impossible to add borders to blockquotes via CSS:
<https://bugreports.qt.io/browse/QTBUG-23244>.

Bug: https://github.com/Nheko-Reborn/nheko/issues/704
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r--resources/qml/delegates/TextMessage.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml
index 0bc45a9c..c37314fd 100644
--- a/resources/qml/delegates/TextMessage.qml
+++ b/resources/qml/delegates/TextMessage.qml
@@ -29,6 +29,7 @@ MatrixText {
         border-collapse: collapse;
         border: 1px solid " + Nheko.colors.text + ";
     }
+    blockquote { margin-left: 1em; }
     </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