Skip to content

Commit

Permalink
fix(QuoteBlock): prevent text from overflowing outside container
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Tudosa <razvan-petru.tudosa@frontify.com>
  • Loading branch information
peter-tudosa committed Jan 24, 2025
1 parent ae78a9d commit 3ca7875
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/quote-block/src/QuoteBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ export const QuoteBlock: FC<BlockProps> = ({ appBridge }) => {

<div
data-test-id="quote-block-author"
className={isFullWidth && isQuotationMarkType ? 'tw-flex-1 tw-w-full' : 'tw-min-w-[1rem]'}
className={
isFullWidth && isQuotationMarkType
? 'tw-flex-1 tw-w-full tw-overflow-hidden'
: 'tw-min-w-[1rem]'
}
>
<div
style={isQuotationMarkType ? {} : borderStyles}
Expand Down

0 comments on commit 3ca7875

Please sign in to comment.