mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Replaced div tags with span for reactions in export chat history.
This commit is contained in:
parent
1f07e7978d
commit
7cf832a2f4
1 changed files with 7 additions and 5 deletions
|
@ -1560,7 +1560,9 @@ auto HtmlWriter::Wrap::pushMessage(
|
||||||
block.append(popTag());
|
block.append(popTag());
|
||||||
}
|
}
|
||||||
if (!message.reactions.empty()) {
|
if (!message.reactions.empty()) {
|
||||||
block.append(pushDiv("reactions"));
|
block.append(pushTag("span", {
|
||||||
|
{ "class", "reactions" },
|
||||||
|
}));
|
||||||
for (const auto &reaction : message.reactions) {
|
for (const auto &reaction : message.reactions) {
|
||||||
auto reactionClass = QByteArray("reaction");
|
auto reactionClass = QByteArray("reaction");
|
||||||
for (const auto &recent : reaction.recent) {
|
for (const auto &recent : reaction.recent) {
|
||||||
|
@ -1574,10 +1576,10 @@ auto HtmlWriter::Wrap::pushMessage(
|
||||||
reactionClass += " paid";
|
reactionClass += " paid";
|
||||||
}
|
}
|
||||||
|
|
||||||
block.append(pushTag("div", {
|
block.append(pushTag("span", {
|
||||||
{ "class", reactionClass },
|
{ "class", reactionClass },
|
||||||
}));
|
}));
|
||||||
block.append(pushTag("div", {
|
block.append(pushTag("span", {
|
||||||
{ "class", "emoji" },
|
{ "class", "emoji" },
|
||||||
}));
|
}));
|
||||||
switch (reaction.type) {
|
switch (reaction.type) {
|
||||||
|
@ -1596,7 +1598,7 @@ auto HtmlWriter::Wrap::pushMessage(
|
||||||
}
|
}
|
||||||
block.append(popTag());
|
block.append(popTag());
|
||||||
if (!reaction.recent.empty()) {
|
if (!reaction.recent.empty()) {
|
||||||
block.append(pushTag("div", {
|
block.append(pushTag("span", {
|
||||||
{ "class", "userpics" },
|
{ "class", "userpics" },
|
||||||
}));
|
}));
|
||||||
for (const auto &recent : reaction.recent) {
|
for (const auto &recent : reaction.recent) {
|
||||||
|
@ -1617,7 +1619,7 @@ auto HtmlWriter::Wrap::pushMessage(
|
||||||
}
|
}
|
||||||
if (reaction.recent.empty()
|
if (reaction.recent.empty()
|
||||||
|| (reaction.count > reaction.recent.size())) {
|
|| (reaction.count > reaction.recent.size())) {
|
||||||
block.append(pushTag("div", {
|
block.append(pushTag("span", {
|
||||||
{ "class", "count" },
|
{ "class", "count" },
|
||||||
}));
|
}));
|
||||||
block.append(NumberToString(reaction.count));
|
block.append(NumberToString(reaction.count));
|
||||||
|
|
Loading…
Add table
Reference in a new issue