Skip to content

Commit 45d647f

Browse files
committed
fix: fixed the UI for the reply feature
changed the replying to to reply and also fixed the image positioning
1 parent 2420a9f commit 45d647f

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

packages/uiweb/src/lib/components/chat/ChatViewBubbleCore/cards/image/ImageCard.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,17 @@ export const ImageCard = ({
5555
<Section
5656
maxWidth={previewMode ? 'auto' : '512px'}
5757
width="fill-available"
58-
justifyContent="flex-start"
58+
justifyContent="space-between"
5959
background={previewMode ? 'transparent' : background}
6060
color={color}
6161
gap="0px"
6262
>
63+
{previewMode && (
64+
<Section margin="8px" alignSelf='center'>
65+
<Tag type="Image" />
66+
</Section>
67+
)}
68+
6369
<Section
6470
background="white"
6571
borderRadius="12px"
@@ -75,11 +81,7 @@ export const ImageCard = ({
7581
/>
7682
</Section>
7783

78-
{previewMode && (
79-
<Section margin="8px 0px 0px 0px">
80-
<Tag type="Image" />
81-
</Section>
82-
)}
84+
8385
</Section>
8486
);
8587
};

packages/uiweb/src/lib/components/chat/ChatViewBubbleCore/cards/reply/ReplyCard.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ export const ReplyCard = ({
157157
fontSize="10px"
158158
color={theme.textColor?.chatSentBubbleText}
159159
>
160-
{`Replied to `}
161160
<Span
162161
fontWeight="500"
163162
padding="0px"

packages/uiweb/src/lib/components/chat/MessageInput/MessageInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ export const MessageInput: React.FC<MessageInputProps> = ({
592592
fontSize="10px"
593593
color={theme.iconColor?.emoji}
594594
>
595-
{`Replying to `}
595+
{`Reply to `}
596596
<Span
597597
fontWeight="500"
598598
padding="0px"
@@ -751,7 +751,7 @@ export const MessageInput: React.FC<MessageInputProps> = ({
751751
);
752752
};
753753

754-
const TypebarSection = styled(Section)<{ border?: string }>`
754+
const TypebarSection = styled(Section) <{ border?: string }>`
755755
// gap: 10px;
756756
border: ${(props) => props.border || 'none'};
757757
@media ${device.mobileL} {

0 commit comments

Comments
 (0)