Skip to content

Commit 83be291

Browse files
committed
feat: enhance layout of InfoColourBar by adding flex-grow-1 class based on textConfig
1 parent 2a456e2 commit 83be291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/InfoColorBar/InfoColourbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const InfoColourBar = ({
118118
className={`${classname} info_text flex dc__content-space pt-8 pb-8 pl-12 pr-12 br-4 top fs-13 fw-4`}
119119
style={styles}
120120
>
121-
<div className={`flex top ${typeof renderActionButton === 'function' ? 'mr-5' : ''}`}>
121+
<div className={`flex top ${typeof renderActionButton === 'function' ? 'mr-5' : ''} ${!!textConfig ? 'flex-grow-1' : ''}`}>
122122
{!hideIcon && (
123123
<div className={`icon-dim-${iconSize ?? '20'} mr-10`}>
124124
<Icon className={`icon-dim-${iconSize ?? '20'} ${iconClass || ''} mr-8`} />

0 commit comments

Comments
 (0)