From ec7d8462f618f0e031db9debf68753f4621acf58 Mon Sep 17 00:00:00 2001 From: James Acklin Date: Sat, 20 Feb 2021 10:51:43 -0500 Subject: [PATCH] chat: conditionally marginalize mention Fixes urbit/landscape#468 --- pkg/interface/src/views/apps/chat/components/ChatMessage.tsx | 2 ++ pkg/interface/src/views/components/MentionText.tsx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/interface/src/views/apps/chat/components/ChatMessage.tsx b/pkg/interface/src/views/apps/chat/components/ChatMessage.tsx index dd1cfea7f5..340bd4f3bb 100644 --- a/pkg/interface/src/views/apps/chat/components/ChatMessage.tsx +++ b/pkg/interface/src/views/apps/chat/components/ChatMessage.tsx @@ -445,8 +445,10 @@ export const Message = ({ ); case 'mention': + const first = (i) => (i === 0); return ( + toggleOverlay()} mx={1}