standardize size and color

This commit is contained in:
bymyself
2025-06-09 04:58:17 -07:00
parent 20e4427602
commit e488b2abce
7 changed files with 45 additions and 26 deletions

View File

@@ -118,7 +118,7 @@ export const useBadgedNumberInput = (
// Optional: minimum height for the widget
getMinHeight: () => minHeight + PADDING,
// Lock maximum height to prevent oversizing
getMaxHeight: () => 45,
getMaxHeight: () => 48,
// Optional: whether to serialize this widget's value
serialize

View File

@@ -31,9 +31,9 @@ const addMultiSelectWidget = (node: LGraphNode, inputSpec: ComboInputSpec) => {
widgetValue.value = value
},
// Optional: minimum height for the widget (multiselect needs minimal height)
getMinHeight: () => 32,
getMinHeight: () => 24,
// Lock maximum height to prevent oversizing
getMaxHeight: () => 45,
getMaxHeight: () => 32,
// Optional: whether to serialize this widget's value
serialize: true
}

View File

@@ -50,9 +50,9 @@ export const useDropdownComboWidget = (
},
// Optional: minimum height for the widget (dropdown needs minimal height)
getMinHeight: () => 48,
getMinHeight: () => 32,
// Lock maximum height to prevent oversizing
getMaxHeight: () => 64,
getMaxHeight: () => 48,
// Optional: whether to serialize this widget's value
serialize: true