summaryrefslogtreecommitdiffstats
path: root/src/routes/posts.rs
diff options
context:
space:
mode:
authorColin Reeder <colin@vpzom.click>2020-12-24 11:02:30 -0700
committerColin Reeder <colin@vpzom.click>2020-12-24 11:02:30 -0700
commitc754ef892c49134efc5ea65a75dc8284bab5ff85 (patch)
tree97b06de47c6f8417967bf06fec03033c713f2bb7 /src/routes/posts.rs
parent59ef6b91e3e8681885a9d97cc5786a327cf26214 (diff)
Style changes to better distinguish posts & comments
- Add a border around post content - Make comment action links smaller and gray - Use <div> instead of <p> around content, as <p> cannot be nested - Change <p> style to only have bottom margin - Add a bit more spacing in a few places
Diffstat (limited to 'src/routes/posts.rs')
-rw-r--r--src/routes/posts.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routes/posts.rs b/src/routes/posts.rs
index 7ad0385..100c097 100644
--- a/src/routes/posts.rs
+++ b/src/routes/posts.rs
@@ -145,6 +145,7 @@ async fn page_post_inner(
}
}
</div>
+ <br />
<p>
{lang.tr("submitted", None)}
{" "}<TimeAgo since={chrono::DateTime::parse_from_rfc3339(&post.as_ref().created)?} lang={&lang} />
@@ -161,7 +162,9 @@ async fn page_post_inner(
}
}
}
- <Content src={&post} />
+ <div class={"postContent"}>
+ <Content src={&post} />
+ </div>
{
if author_is_me(&post.as_ref().author, &base_data.login) || (post.local && base_data.is_site_admin()) {
Some(render::rsx! {