Skip to content

Commit

Permalink
'#1920: Use CSS class instead of in-line styles for images in WA quotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
wladimirleite committed Feb 2, 2024
1 parent e727464 commit a2c7a6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ private synchronized void printMessage(PrintWriter out, Message message, boolean
if (dataQuote == null || dataQuote.isEmpty()){
dataQuote = Messages.getString("WhatsAppReport.Video");
}
out.print("<div class=\""+quoteClass+"\" "+quoteClick+"><div style=\"display:table-cell;vertical-align:top;border-right: 10px solid transparent;\"><span class=\"quoteUser\">"+quoteUser+
out.print("<div class=\""+quoteClass+"\" "+quoteClick+"><div class=\"quoteTop\"><span class=\"quoteUser\">"+quoteUser+
"</span><br><span class=\"quoteMsg\">"+quoteIcon +
" "+ format(dataQuote) + " "+ quoteDuration + "</span></div>");
if (thumbQuote != null) {
Expand All @@ -695,7 +695,7 @@ private synchronized void printMessage(PrintWriter out, Message message, boolean
if (dataQuote == null || dataQuote.isEmpty()){
dataQuote = Messages.getString("WhatsAppReport.Photo");
}
out.print("<div class=\""+quoteClass+"\" "+quoteClick+"><div style=\"display:table-cell;vertical-align:top;border-right: 10px solid transparent;\"><span class=\"quoteUser\">"+quoteUser+
out.print("<div class=\""+quoteClass+"\" "+quoteClick+"><div class=\"quoteTop\"><span class=\"quoteUser\">"+quoteUser+
"</span><br><span class=\"quoteMsg\">"+quoteIcon +" "+ format(dataQuote) + " </span></div>");
if (thumbQuote != null) {
out.print("<div><img class=\"quoteImg\" src=\"");
Expand All @@ -709,7 +709,7 @@ private synchronized void printMessage(PrintWriter out, Message message, boolean
if (dataQuote == null || dataQuote.isEmpty()){
dataQuote = Messages.getString("WhatsAppReport.Document");
}
out.print("<div class=\""+quoteClass+"\" "+quoteClick+"><div style=\"display:table-cell;vertical-align:top;border-right: 10px solid transparent;\"><span class=\"quoteUser\">"+quoteUser+
out.print("<div class=\""+quoteClass+"\" "+quoteClick+"><div class=\"quoteTop\"><span class=\"quoteUser\">"+quoteUser+
"</span><br><span class=\"quoteMsg\">"+quoteIcon +" "+ format(dataQuote) + " </span></div>");
if (thumbQuote != null) {
out.print("<div><img class=\"quoteImg\" src=\"");
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a2c7a6c

Please sign in to comment.