Tweak CSS class some more; add plain-text to by_page

This commit is contained in:
swagg boi 2025-04-11 23:05:30 -04:00
parent 9cdc7aaf06
commit 817dbc046b
3 changed files with 12 additions and 10 deletions

View File

@ -134,5 +134,5 @@
.plain-text {
white-space: pre-wrap;
display: inline-block;
margin-bottom: 1em;
margin: 1em 0;
}

View File

@ -19,9 +19,7 @@
<% if ($draft->{'markdown'}) { =%>
<%== markdown $draft->{'body'} =%>
<% } else { =%>
<span class="plain-text">
<%= $draft->{'body'} =%>
</span>
<span class="plain-text"><%= $draft->{'body'} =%></span>
<% } =%>
</div>
<% } =%>
@ -82,9 +80,7 @@
</h4>
<h5 class="post__author"><%= $last_remark->{'author'} %></h5>
<div class="post__body">
<span class="plain-text">
<%= $last_remark->{'body'} =%>
</span>
<span class="plain-text"><%= $last_remark->{'body'} =%></span>
</div>
<nav class="post__nav">
<%= link_to Thread => single_thread =>
@ -110,9 +106,7 @@
<h4 class="post__date"><%= $thread->{'date'} %></h4>
<h5 class="post__author"><%= $thread->{'author'} %></h5>
<div class="post__body">
<span class="plain-text">
<%= $thread->{'body'} =%>
</span>
<span class="plain-text"><%= $thread->{'body'} =%></span>
</div>
<nav class="post__nav">
<%= link_to post_remark => {thread_id => $thread->{'id'}},

View File

@ -28,11 +28,19 @@
<summary>
<%= truncate_text $thread->{'body'} %>
</summary>
<% if ($thread->{'markdown'}) { =%>
<%== markdown $thread->{'body'} =%>
<% } else { =%>
<span class="plain-text"><%= $thread->{'body'} %></span>
<% } =%>
</details>
<% } else { =%>
<div class="post__body">
<% if ($thread->{'markdown'}) { =%>
<%== markdown $thread->{'body'} =%>
<% } else { =%>
<span class="plain-text"><%= $thread->{'body'} %></span>
<% } =%>
</div>
<% } =%>
<nav class="post__nav">