summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-07-11 15:33:24 +0200
committerMax Magorsch <arzano@gentoo.org>2020-07-11 15:33:24 +0200
commit83c11c187ac2030fac1a403a628a04dcf6da35da (patch)
tree4a42f167492e20568efa593aef9cc4c279b6c279 /views
parentUse a table for the message body instead of pre (diff)
downloadfrontend-83c11c187ac2030fac1a403a628a04dcf6da35da.tar.gz
frontend-83c11c187ac2030fac1a403a628a04dcf6da35da.tar.bz2
frontend-83c11c187ac2030fac1a403a628a04dcf6da35da.zip
Adjust the width of the line numbers column
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'views')
-rw-r--r--views/message.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/message.erb b/views/message.erb
index f7e1c89..a888d08 100644
--- a/views/message.erb
+++ b/views/message.erb
@@ -42,7 +42,7 @@
<% inquote = false %>
<% linkize(strip_email(message['_source']['content'])).split("\n").each_with_index do |line, index| %>
<tr id="L<%= index + 1 %>" class="ag-line">
- <td class="pr-3 text-right" style="line-height: 1.2;user-select: none;"><a style="font-family: monospace;font-size: 12px;" class="ag-line-number" href="#L<%= index + 1 %>"><%= index + 1 %></a></td>
+ <td class="pr-3 text-right" style="width:40px;line-height: 1.2;user-select: none;"><a style="font-family: monospace;font-size: 12px;" class="ag-line-number" href="#L<%= index + 1 %>"><%= index + 1 %></a></td>
<% if line.start_with?('<div class="ag-quote">') %>
<% inquote = true %>
<td style="line-height: 1.2;font-family: monospace;font-size: 12px;color:#999"><%= line.sub('<div class="ag-quote">','') %></td>