mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 19:08:09 +01:00
nmbug-status: Add inter-message padding
We already had the tbody with a blank row separating threads (which is not colored); this commit adds a bit of spacing to separate messages within a thread. It will also add a bit of colored padding above the first message and below the final message, but the main goal is to add padding *between* two-row message blocks. <--- new padding thread-1, message-1, row-1 (class="message-first") thread-1, message-1, row-2 (class="message-last") <--- new padding spacer tbody with a blank row <--- new padding thread-2, message-1, row-1 (class="message-first") thread-2, message-1, row-2 (class="message-last") <--- new padding <--- new padding thread-2, message-2, row-1 (class="message-first") thread-2, message-2, row-2 (class="message-last") <--- new padding
This commit is contained in:
parent
1aa56c2ac5
commit
0d563dae1d
1 changed files with 9 additions and 2 deletions
|
@ -208,11 +208,11 @@ class HtmlPage (Page):
|
||||||
stream.write(' <tbody>\n')
|
stream.write(' <tbody>\n')
|
||||||
for message_display_data in thread:
|
for message_display_data in thread:
|
||||||
stream.write((
|
stream.write((
|
||||||
' <tr>\n'
|
' <tr class="message-first">\n'
|
||||||
' <td>{date}</td>\n'
|
' <td>{date}</td>\n'
|
||||||
' <td><code>{message-id-term}</code></td>\n'
|
' <td><code>{message-id-term}</code></td>\n'
|
||||||
' </tr>\n'
|
' </tr>\n'
|
||||||
' <tr>\n'
|
' <tr class="message-last">\n'
|
||||||
' <td>{from}</td>\n'
|
' <td>{from}</td>\n'
|
||||||
' <td>{subject}</td>\n'
|
' <td>{subject}</td>\n'
|
||||||
' </tr>\n'
|
' </tr>\n'
|
||||||
|
@ -255,6 +255,12 @@ _PAGES['html'] = HtmlPage(
|
||||||
table {{
|
table {{
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
}}
|
}}
|
||||||
|
tr.message-first td {{
|
||||||
|
padding-top: {inter_message_padding};
|
||||||
|
}}
|
||||||
|
tr.message-last td {{
|
||||||
|
padding-bottom: {inter_message_padding};
|
||||||
|
}}
|
||||||
td {{
|
td {{
|
||||||
padding-left: {border_radius};
|
padding-left: {border_radius};
|
||||||
padding-right: {border_radius};
|
padding-right: {border_radius};
|
||||||
|
@ -287,6 +293,7 @@ For more infomation see <a href="http://notmuchmail.org/nmbug">nmbug</a>
|
||||||
</p>
|
</p>
|
||||||
<h3>Views</h3>
|
<h3>Views</h3>
|
||||||
'''.format(date=datetime.datetime.utcnow().date(),
|
'''.format(date=datetime.datetime.utcnow().date(),
|
||||||
|
inter_message_padding='0.25em',
|
||||||
border_radius='0.5em'),
|
border_radius='0.5em'),
|
||||||
footer='</body>\n</html>\n',
|
footer='</body>\n</html>\n',
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue