2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-18 18:28:18 +00:00

Column min width (#10204)

* Support minimum column width

* Adjust DescriptionColumn and StatusColumn

* Column refactoring

* Refactor PartColumn

* Refactor LineItemsProgerssColumn

* Tweaks
This commit is contained in:
Oliver
2025-08-20 21:49:27 +10:00
committed by GitHub
parent 76dfd62f84
commit ed31503d3b
30 changed files with 170 additions and 181 deletions

View File

@@ -91,6 +91,7 @@ export type TableState = {
* @param filter - A custom filter function
* @param filtering - Whether the column is filterable
* @param width - The width of the column
* @param minWidth - The minimum width of the column
* @param resizable - Whether the column is resizable (defaults to true)
* @param noWrap - Whether the column should wrap
* @param ellipsis - Whether the column should be ellipsized
@@ -113,6 +114,7 @@ export type TableColumnProps<T = any> = {
filter?: any;
filtering?: boolean;
width?: number;
minWidth?: string | number;
resizable?: boolean;
noWrap?: boolean;
ellipsis?: boolean;
@@ -120,6 +122,7 @@ export type TableColumnProps<T = any> = {
cellsStyle?: any;
extra?: any;
noContext?: boolean;
style?: MantineStyleProp;
};
/**