From c3422c2c08510dbb7443c63b88adf1587deb8f76 Mon Sep 17 00:00:00 2001 From: Igor Ustyugov Date: Sun, 4 Sep 2016 11:30:27 +0500 Subject: Fix avatar/timestamp on small display --- .../src/main/java/com/juick/www/PageTemplates.java | 7 +++-- .../src/main/java/com/juick/www/UserThread.java | 34 ++++++++++++---------- 2 files changed, 23 insertions(+), 18 deletions(-) (limited to 'juick-www/src/main/java/com/juick/www') diff --git a/juick-www/src/main/java/com/juick/www/PageTemplates.java b/juick-www/src/main/java/com/juick/www/PageTemplates.java index a036ecba..ea201b85 100644 --- a/juick-www/src/main/java/com/juick/www/PageTemplates.java +++ b/juick-www/src/main/java/com/juick/www/PageTemplates.java @@ -320,11 +320,12 @@ public class PageTemplates { } out.println("
"); - out.println(" "); out.println("
"); - out.println("
"); out.println(" @" + msg.getUser().getUName() + ":"); - out.println("
" + tagsStr + "
"); + out.println("
\""
"); + out.println(" "); + + out.println("
" + tagsStr + "
"); out.println("
"); if (msg.AttachmentType != null) { diff --git a/juick-www/src/main/java/com/juick/www/UserThread.java b/juick-www/src/main/java/com/juick/www/UserThread.java index c3228e17..8325cf53 100644 --- a/juick-www/src/main/java/com/juick/www/UserThread.java +++ b/juick-www/src/main/java/com/juick/www/UserThread.java @@ -279,16 +279,18 @@ public class UserThread { } out.println("\">"); out.println("
"); - out.println("
"); - out.println(" "); - if (!msg.getUser().Banned) { - out.println("
\""
"); - out.println(" "); + out.println("
"); + if (!msg.getUser().Banned) { + out.println(" @" + msg.getUser().getUName() + ":"); + out.println("
\""
"); } else { - out.println("
"); - out.println("
[удалено]:
"); + out.println(" [удалено]:"); + out.println("
"); } - out.println("
" + Utils.formatMessage(msg.getText()) + "
"); + out.println("
"); + out.println(" "); + out.println("
"); + out.println("
" + Utils.formatMessage(msg.getText()) + "
"); if (msg.AttachmentType != null) { out.println("
\"\"/
"); } @@ -319,16 +321,18 @@ public class UserThread { for (Message msg : replies) { out.print("
  • "); out.println("
    "); - out.println("
    "); - out.println(" "); + out.println("
    "); if (!msg.getUser().Banned) { - out.println("
    \""
    "); - out.println(" "); + out.println(" @" + msg.getUser().getUName() + ":"); + out.println("
    \""
    "); } else { - out.println("
    "); - out.println("
    [удалено]:
    "); + out.println(" [удалено]:"); + out.println("
    "); } - out.println("
    " + Utils.formatMessage(msg.getText()) + "
    "); + out.println("
    "); + out.println(" "); + out.println("
    "); + out.println("
    " + Utils.formatMessage(msg.getText()) + "
    "); if (msg.AttachmentType != null) { out.println("
    \"\"/
    "); } -- cgit v1.2.3