From 6eea7f19653d73c1e5c15019b4f39b589f5b43be Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 3 Aug 2022 07:20:30 +0100 Subject: [PATCH] Use the alternative nowrap helper for options alignment --- core/templates/base.html | 6 ++ core/templates/ui/drilldown/drilldown.html | 21 +++--- core/templates/ui/drilldown/results.html | 87 ++++++++++++---------- 3 files changed, 65 insertions(+), 49 deletions(-) diff --git a/core/templates/base.html b/core/templates/base.html index d20cc8c..5790527 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -48,6 +48,12 @@ white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* IE */ } + .nowrap-parent { + white-space: nowrap; + } + .nowrap-child { + display: inline-block; + } .slider-output { width: 4rem !important; } diff --git a/core/templates/ui/drilldown/drilldown.html b/core/templates/ui/drilldown/drilldown.html index c7aaae3..1366ea4 100644 --- a/core/templates/ui/drilldown/drilldown.html +++ b/core/templates/ui/drilldown/drilldown.html @@ -38,17 +38,16 @@
-
- -
- Static -
+
+ +
+ Static
+
@@ -132,7 +131,7 @@ diff --git a/core/templates/ui/drilldown/results.html b/core/templates/ui/drilldown/results.html index 302e90c..207c751 100644 --- a/core/templates/ui/drilldown/results.html +++ b/core/templates/ui/drilldown/results.html @@ -5,29 +5,28 @@ -
-
-
+
+
-
+

{{ card }} hits

{% if redacted != 0 %} -
+

{{ redacted }} redacted

{% endif %} + +
+

{{ took }}ms

+
{% if exemption is not None %} -
-

god mode

+
+
{% endif %} -
-

{{ took }}ms

-
-
@@ -119,27 +118,33 @@ {{ item.msg }} {{ item.host }} - {% if item.online is True %} - - - - {{ item.nick }} - {% elif item.online is False %} - - - - {{ item.nick }} - {% else %} - - - - {{ item.nick }} - {% endif %} - {% if item.num_chans is not None %} - - {{ item.num_chans }} - - {% endif %} +
+
+ {% if item.online is True %} + + + + {% elif item.online is False %} + + + + {% else %} + + + + {% endif %} +
+
+ {{ item.nick }} +
+ {% if item.num_chans is not None %} +
+ + {{ item.num_chans }} + +
+ {% endif %} +
{% if item.src == 'irc' %} @@ -155,12 +160,18 @@ {% endif %} - {{ item.channel }} - {% if item.num_users is not None %} - - {{ item.num_users }} - - {% endif %} +
+
+ {{ item.channel }} +
+ {% if item.num_users is not None %} +
+ + {{ item.num_users }} + +
+ {% endif %} +
{{ item.net }}