From b629fbdbb98a3eec9557d23c5257ee88e923134a Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Fri, 26 Jan 2024 12:09:52 -0800 Subject: [PATCH] Two UI tweaks after recent updates (#2647) * Readd the top border to the highlighted post when a reply (revert #2628) * Readd right pad to post controls --- src/view/com/post-thread/PostThreadItem.tsx | 15 ++---------- src/view/com/util/LoadingPlaceholder.tsx | 2 +- src/view/com/util/post-ctrls/PostCtrls.tsx | 26 ++++++++++----------- 3 files changed, 16 insertions(+), 27 deletions(-) diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 95fd5aef..a27ee0a5 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -250,13 +250,7 @@ let PostThreadItemLoaded = ({ @@ -732,15 +726,10 @@ const useStyles = () => { paddingLeft: 8, }, outerHighlighted: { - borderTopWidth: 0, - paddingTop: 4, + paddingTop: 16, paddingLeft: 8, paddingRight: 8, }, - outerHighlightedRoot: { - borderTopWidth: 1, - paddingTop: 16, - }, noTopBorder: { borderTopWidth: 0, }, diff --git a/src/view/com/util/LoadingPlaceholder.tsx b/src/view/com/util/LoadingPlaceholder.tsx index 8941bfb9..32c99e22 100644 --- a/src/view/com/util/LoadingPlaceholder.tsx +++ b/src/view/com/util/LoadingPlaceholder.tsx @@ -88,7 +88,7 @@ export function PostLoadingPlaceholder({ strokeWidth={3} /> - + diff --git a/src/view/com/util/post-ctrls/PostCtrls.tsx b/src/view/com/util/post-ctrls/PostCtrls.tsx index a6d7e38c..249111a0 100644 --- a/src/view/com/util/post-ctrls/PostCtrls.tsx +++ b/src/view/com/util/post-ctrls/PostCtrls.tsx @@ -149,7 +149,7 @@ let PostCtrls = ({ ) : undefined} - + {big ? undefined : ( - + + + )} - {/* used for adding pad to the right side */} - ) }