Skip to content
Snippets Groups Projects
Verified Commit bd9946bf authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix height attribute for emotes

parent f3ff5669
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ CombinedImagePackModel::data(const QModelIndex &index, int role) const ...@@ -58,7 +58,7 @@ CombinedImagePackModel::data(const QModelIndex &index, int role) const
switch (role) { switch (role) {
case CompletionModel::CompletionRole: case CompletionModel::CompletionRole:
return QStringLiteral( 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(), .arg(QString::fromStdString(images[index.row()].image.url).toHtmlEscaped(),
!images[index.row()].image.body.empty() !images[index.row()].image.body.empty()
? QString::fromStdString(images[index.row()].image.body) ? QString::fromStdString(images[index.row()].image.body)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment