From 15a52f4ebb264664ec03f92e68e20b4fd88325e3 Mon Sep 17 00:00:00 2001 From: Vlad Zusko Date: Fri, 27 Dec 2024 14:59:54 +0200 Subject: [PATCH 1/4] fix: fix text overflow effect --- src/ColorInput.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ColorInput.tsx b/src/ColorInput.tsx index b2afee0..527b68d 100644 --- a/src/ColorInput.tsx +++ b/src/ColorInput.tsx @@ -177,7 +177,15 @@ export const SimplerColorInput = (props: ObjectInputProps) => { /> {selectedColor?.label || 'Select a color...'} - {selectedColor?.value} + + {selectedColor?.value} + From 94792d117568b8f2160bb33e6c074dd814af9ea6 Mon Sep 17 00:00:00 2001 From: Vlad Zusko Date: Fri, 3 Jan 2025 11:21:32 +0200 Subject: [PATCH 2/4] fix: fix color value overflowing fix implementation --- src/ColorInput.tsx | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/ColorInput.tsx b/src/ColorInput.tsx index 527b68d..ec44831 100644 --- a/src/ColorInput.tsx +++ b/src/ColorInput.tsx @@ -156,6 +156,8 @@ export const SimplerColorInput = (props: ObjectInputProps) => { textAlign: 'center', borderTopRightRadius: isRequired ? '' : '0', borderBottomRightRadius: isRequired ? '' : '0', + flexShrink: 1, + overflow: 'hidden', }} mode="ghost" padding={2} @@ -165,9 +167,9 @@ export const SimplerColorInput = (props: ObjectInputProps) => { : setPickerIsOpen(!pickerIsOpen) } > - - - + + + { margin={1} /> - {selectedColor?.label || 'Select a color...'} - - {selectedColor?.value} + + {selectedColor?.label || 'Select a color...'}{' '} - - - + + {selectedColor?.value} + + + + {!isRequired && (