Fix height attribute for emotes

pull/1095/head
Nicolas Werner 2 years ago
parent f3ff56692e
commit bd9946bff9
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      src/CombinedImagePackModel.cpp

@ -58,7 +58,7 @@ CombinedImagePackModel::data(const QModelIndex &index, int role) const
switch (role) {
case CompletionModel::CompletionRole:
return QStringLiteral(
"<img data-mx-emoticon height=32 src=\"%1\" alt=\"%2\" title=\"%2\">")
"<img data-mx-emoticon height=\"32\" src=\"%1\" alt=\"%2\" title=\"%2\">")
.arg(QString::fromStdString(images[index.row()].image.url).toHtmlEscaped(),
!images[index.row()].image.body.empty()
? QString::fromStdString(images[index.row()].image.body)

Loading…
Cancel
Save