From: Raxel Gutierrez Date: Fri, 20 Aug 2021 04:50:22 +0000 (+0000) Subject: patch-detail: left align message headers X-Git-Tag: v3.1.0~74 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe34ab2ffad348bc1c13a890f22f240d73705f34;p=thirdparty%2Fpatchwork.git patch-detail: left align message headers Change both of the message containers in the "Commit Message" and "Comments" to have their content be left-aligned which improves the proximity of items which boosts the efficiency of gathering information and performing actions. Before [1] and after [2] images for reference. [1] https://i.imgur.com/ji2ZINL.png [2] https://i.imgur.com/Dtn8lm9.png Signed-off-by: Raxel Gutierrez Reviewed-by: Stephen Finucane Signed-off-by: Daniel Axtens --- diff --git a/htdocs/css/style.css b/htdocs/css/style.css index f30988e0..a2a2e3c3 100644 --- a/htdocs/css/style.css +++ b/htdocs/css/style.css @@ -296,17 +296,19 @@ table.patch-meta tr th, table.patch-meta tr td { color: #f7977a; } -.comment .meta { +.submission-message .meta { + display: flex; + align-items: center; background: #f0f0f0; padding: 0.3em 0.5em; } -.comment .content { - border: 0; +.submission-message .message-date { + margin-left: 8px; } -.patch .content { - padding: 1em; +.submission-message .content { + border: 0; } .patch-pull-url { diff --git a/patchwork/templates/patchwork/submission.html b/patchwork/templates/patchwork/submission.html index 66efa0b5..36b15d0e 100644 --- a/patchwork/templates/patchwork/submission.html +++ b/patchwork/templates/patchwork/submission.html @@ -257,14 +257,14 @@ {% else %}

Message

{% endif %} -
-
- {{ submission.submitter|personify:project }} - {{ submission.date }} UTC -
-
-{{ submission|commentsyntax }}
-
+
+
+ {{ submission.submitter|personify:project }} + {{ submission.date }} UTC +
+
+  {{ submission|commentsyntax }}
+  
{% for item in comments %} @@ -273,11 +273,12 @@ {% endif %} -
+
{{ item.submitter|personify:project }} - {{ item.date }} UTC | #{{ forloop.counter }} + {{ item.date }} UTC | + #{{ forloop.counter }} +
 {{ item|commentsyntax }}