Commit 14c4d3da authored by Laurent Montel's avatar Laurent Montel 😁

Don't show a big icon

parent 2b1cd557
......@@ -914,6 +914,7 @@ public:
block.setProperty("decryptIcon", QUrl::fromLocalFile(IconNameCache::instance()->iconPath(QStringLiteral("document-decrypt"), KIconLoader::Small)).url());
block.setProperty("errorText", metaData.errorText);
block.setProperty("noSecKey", mp->mNoSecKey);
block.setProperty("iconSize", MessageViewer::MessagePartRendererManager::self()->iconCurrentSize());
const auto html = t->render(&c);
......@@ -3,7 +3,8 @@
{% i18n "This message is encrypted." %}
<div style="text-align:center; padding-bottom:20pt;">
<a href="kmail:decryptMessage"> <img src="{{block.decryptIcon}}"/> {% i18n "Decrypt Message" %} </a>
<a href="kmail:decryptMessage"> <img src="{{block.decryptIcon}}" height="{{block.iconSize}}" width="{{block.iconSize}}"/> {% i18n "Decrypt Message" %} </a>
{% else %}
<table cellspacing="1" cellpadding="1" class="encr">
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment