From c122915c282cb2f0fdc5bed3645f399e66f50e3c Mon Sep 17 00:00:00 2001 From: tastytea <tastytea@tastytea.de> Date: Sat, 4 Sep 2021 14:52:33 +0200 Subject: [PATCH] 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 --- resources/qml/delegates/TextMessage.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml index 0bc45a9c9..c37314fdb 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 -- GitLab