Disable second row of images, reset sizes of all fonts upon message loading.

This commit is contained in:
Martin Rotter 2021-05-31 08:10:35 +02:00
parent 0fd3a6c8d3
commit 8849d47c48
4 changed files with 30 additions and 6 deletions

View File

@ -1 +1 @@
<a class="button small primary" href="%1">%2 <span style="line-height: 100%; vertical-align: middle; font-size: 55%;">%3</span></a>
<a class="button small primary" href="%1">%2<span style="text-transform: uppercase;">%3</span></a>

View File

@ -1,5 +1,5 @@
<div class="card filled fluid" dir="auto">
<h5 class="doc section">%1 <a class="button small primary" href="%3">URL</a> %6</h5>
<h5 class="doc section">%1 <a class="button small primary" href="%3">🔗URL</a> %6</h5>
<div class="doc section">
<div style="text-align: center;">
%2, %5

File diff suppressed because one or more lines are too long

View File

@ -54,6 +54,10 @@ WebPage* WebViewer::page() const {
void WebViewer::displayMessage() {
setHtml(m_messageContents, QUrl::fromUserInput(INTERNAL_URL_MESSAGE));
qDebugNN << LOGSEC_CORE
<< "Displaying contents:"
<< QUOTE_W_SPACE_DOT(m_messageContents);
}
bool WebViewer::increaseWebPageZoom() {
@ -115,13 +119,15 @@ void WebViewer::loadMessages(const QList<Message>& messages, RootItem* root) {
enclosures += skin.m_enclosureMarkup.arg(enc_url,
QSL("&#129527;"), enclosure.m_mimeType);
if (enclosure.m_mimeType.startsWith(QSL("image/"))) {
// Add thumbnail image.
enclosure_images += skin.m_enclosureImageMarkup.arg(
/*
if (enclosure.m_mimeType.startsWith(QSL("image/"))) {
// Add thumbnail image.
enclosure_images += skin.m_enclosureImageMarkup.arg(
enclosure.m_url,
enclosure.m_mimeType,
qApp->settings()->value(GROUP(Messages), SETTING(Messages::MessageHeadImageHeight)).toString());
}
}
*/
}
messages_layout.append(single_message_layout