From 94274a1e7fee63dd8a73e74e2e56a3517e3807d6 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Mon, 19 Jun 2023 11:26:29 -0400 Subject: [PATCH] feat(post): Move post domain beneath post title (#1363) * feat(post): Move post domain and preview button beneath post title * fix: Move the 'show body' button back to actions line; only show if there is something to show; add 'active' color * fix: Fix some margins --- src/assets/css/main.css | 4 - src/shared/components/post/post-listing.tsx | 229 +++++++++++--------- 2 files changed, 126 insertions(+), 107 deletions(-) diff --git a/src/assets/css/main.css b/src/assets/css/main.css index da3f7ff..f9aa1ff 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -84,10 +84,6 @@ margin-top: -6.5px; } -.post-title { - line-height: 1; -} - .post-title a:visited { color: var(--gray) !important; } diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 80da4b3..48d2dc6 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -367,10 +367,8 @@ export class PostListing extends Component { createdLine() { const post_view = this.postView; - const url = post_view.post.url; - const body = post_view.post.body; return ( -