@superdangerous/app-framework 4.16.7 → 4.16.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ui/data-table/hooks/useResizableColumns.ts +4 -2
- package/ui/dist/index.js +31 -31
- package/ui/dist/index.js.map +1 -1
- package/ui/dist/index.mjs +31 -31
- package/ui/dist/index.mjs.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdangerous/app-framework",
|
|
3
|
-
"version": "4.16.
|
|
3
|
+
"version": "4.16.9",
|
|
4
4
|
"description": "Opinionated TypeScript framework for structured vibecoding - building internal web and desktop apps with batteries included",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -238,13 +238,15 @@ export function useResizableColumns({
|
|
|
238
238
|
const getColumnStyle = useCallback(
|
|
239
239
|
(columnKey: string): React.CSSProperties => {
|
|
240
240
|
const currentWidth = state.widths[columnKey] || DEFAULT_WIDTH;
|
|
241
|
+
const config = getColumnConfig(columnKey);
|
|
242
|
+
const minWidth = config?.minWidth || DEFAULT_MIN_WIDTH;
|
|
241
243
|
return {
|
|
242
244
|
width: currentWidth,
|
|
243
|
-
minWidth:
|
|
245
|
+
minWidth: minWidth, // Use configured min width, not current width
|
|
244
246
|
position: 'relative',
|
|
245
247
|
};
|
|
246
248
|
},
|
|
247
|
-
[state.widths]
|
|
249
|
+
[state.widths, getColumnConfig]
|
|
248
250
|
);
|
|
249
251
|
|
|
250
252
|
// Calculate total table width from all columns
|