File tree 1 file changed +4
-3
lines changed
client/packages/lowcoder/src/comps/comps/responsiveLayout
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ const ColWrapper = styled(Col)<{
87
87
flex-basis: ${ ( props ) =>
88
88
props . $rowBreak
89
89
? `calc(100% / var(--columns))` // Force exact column distribution
90
- : `clamp(${ props . $minWidth } , 100% / var(--columns), 100%)` } ; // MinWidth respected
90
+ : `clamp(${ props . $minWidth || "0px" } , calc( 100% / var(--columns) ), 100%)` } ; // MinWidth respected
91
91
92
92
min-width: ${ ( props ) => props . $minWidth } ; // Ensure minWidth is respected
93
93
max-width: 100%; // Prevent more columns than allowed
@@ -237,7 +237,8 @@ const ResponsiveLayout = (props: ResponsiveLayoutProps) => {
237
237
if ( ! containers [ id ] ) return null ;
238
238
const containerProps = containers [ id ] . children ;
239
239
240
- const calculatedWidth = 100 / numberOfColumns ;
240
+ // Use the actual minWidth from column configuration instead of calculated width
241
+ const columnMinWidth = column . minWidth || `${ 100 / numberOfColumns } px` ;
241
242
242
243
return (
243
244
< ColWrapper
@@ -247,7 +248,7 @@ const ResponsiveLayout = (props: ResponsiveLayoutProps) => {
247
248
sm = { rowBreak ? 24 / numberOfColumns : undefined }
248
249
xs = { rowBreak ? 24 / numberOfColumns : undefined }
249
250
$style = { props . columnStyle }
250
- $minWidth = { ` ${ calculatedWidth } px` }
251
+ $minWidth = { columnMinWidth }
251
252
$matchColumnsHeight = { matchColumnsHeight }
252
253
$rowBreak = { rowBreak }
253
254
>
You can’t perform that action at this time.
0 commit comments