Skip to content

Commit 97302c1

Browse files
updated row height range
1 parent 874ede4 commit 97302c1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

client/packages/lowcoder/src/components/ThemeSettingsSelector.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,8 @@ export default function ThemeSettingsSelector(props: ColorConfigProps) {
576576

577577
<Slider
578578
style={{ width: "90%", margin: "8px 5% 0 5%"}}
579-
min={6} // Define the minimum value for the slider
580-
max={20} // Define the maximum value for the slider
579+
min={4} // Define the minimum value for the slider
580+
max={100} // Define the maximum value for the slider
581581
value={parseInt(gridRowHeight || "8")}
582582
onChange={(value) => setGridRowHeight(value.toString())}
583583
onChangeComplete={(value) => gridSizeInputBlur(value.toString())}

client/packages/lowcoder/src/comps/comps/appSettingsComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const childrenMap = {
216216
lowcoderCompVersion: withDefault(StringControl, 'latest'),
217217
maxWidth: dropdownInputSimpleControl(OPTIONS, USER_DEFINE, "1920"),
218218
gridColumns: RangeControl.closed(8, 48, 24),
219-
gridRowHeight: RangeControl.closed(6, 20, 8),
219+
gridRowHeight: RangeControl.closed(4, 100, 8),
220220
gridRowCount: withDefault(NumberControl, DEFAULT_ROW_COUNT),
221221
gridPaddingX: withDefault(NumberControl, 20),
222222
gridPaddingY: withDefault(NumberControl, 20),

client/packages/lowcoder/src/comps/comps/containerComp/containerView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ export const InnerGrid = React.memo((props: ViewPropsWithSelect) => {
484484
setRowCount(Infinity);
485485
onRowCountChange?.(0);
486486
}
487-
}, [isRowCountLocked, onRowCountChange]);
487+
}, [isRowCountLocked, positionParams.rowHeight, onRowCountChange]);
488488

489489
// log.info("rowCount:", currentRowCount, "rowHeight:", currentRowHeight);
490490

0 commit comments

Comments
 (0)