diff options
author | tastytea <tastytea@tastytea.de> | 2021-09-04 14:52:33 +0200 |
---|---|---|
committer | tastytea <tastytea@tastytea.de> | 2021-09-04 17:45:22 +0200 |
commit | c122915c282cb2f0fdc5bed3645f399e66f50e3c (patch) | |
tree | 542c06a042be14131436b177d7ef9a66f4bd38b6 | |
parent | Translated using Weblate (Portuguese (Portugal)) (diff) | |
download | nheko-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
-rw-r--r-- | resources/qml/delegates/TextMessage.qml | 1 |
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 |