From c7cb1bc400a34693938e78fab57083c083fc1008 Mon Sep 17 00:00:00 2001 From: Matthew Birtch Date: Tue, 2 Apr 2024 16:16:18 -0400 Subject: [PATCH] MM-55252 Update RHS Thread View to Use Relative Timestamps (#26605) * switch RHS thread to relative time * update snapshot --- .../rhs_thread/__snapshots__/rhs_thread.test.tsx.snap | 2 +- webapp/channels/src/components/rhs_thread/rhs_thread.tsx | 2 +- webapp/channels/src/sass/components/_post-right.scss | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/webapp/channels/src/components/rhs_thread/__snapshots__/rhs_thread.test.tsx.snap b/webapp/channels/src/components/rhs_thread/__snapshots__/rhs_thread.test.tsx.snap index 07ce992c9e..6d70792b1b 100644 --- a/webapp/channels/src/components/rhs_thread/__snapshots__/rhs_thread.test.tsx.snap +++ b/webapp/channels/src/components/rhs_thread/__snapshots__/rhs_thread.test.tsx.snap @@ -33,7 +33,7 @@ exports[`components/RhsThread should match snapshot 1`] = ` fromSuppressed={false} isThreadView={false} rootPostId="id" - useRelativeTimestamp={false} + useRelativeTimestamp={true} /> `; diff --git a/webapp/channels/src/components/rhs_thread/rhs_thread.tsx b/webapp/channels/src/components/rhs_thread/rhs_thread.tsx index 614b999a47..cdf8d3be17 100644 --- a/webapp/channels/src/components/rhs_thread/rhs_thread.tsx +++ b/webapp/channels/src/components/rhs_thread/rhs_thread.tsx @@ -59,7 +59,7 @@ const RhsThread = ({ /> diff --git a/webapp/channels/src/sass/components/_post-right.scss b/webapp/channels/src/sass/components/_post-right.scss index 98c3df0724..a733872e69 100644 --- a/webapp/channels/src/sass/components/_post-right.scss +++ b/webapp/channels/src/sass/components/_post-right.scss @@ -67,7 +67,8 @@ } .post { - &.post--root { + &.post--root, + &.other--root { padding-top: 16px; .post__body {