-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make Table cells responsive on narrow widths (#1863)
- All columns have an overridable non-zero min-width defined to prevent them from getting too small. - Cells will use shadow DOM to clamp automatically if the value is a string (can be explicitly enabled/disabled). - Filter/sort icons will wrap into next line on narrow widths. - Filter icon is now always visible (previously only on hover). - Sort icon occupies less space.
- Loading branch information
Showing
61 changed files
with
385 additions
and
802 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@itwin/itwinui-css": minor | ||
--- | ||
|
||
The filter button inside a Table will now always be visible, instead of only being shown on hover/focus. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@itwin/itwinui-react": minor | ||
--- | ||
|
||
The filter button inside a Table will now always be visible, instead of only being shown on hover/focus. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@itwin/itwinui-react": minor | ||
--- | ||
|
||
The responsive behavior of Table columns has been improved in a few different ways: | ||
- All columns now have a non-zero default min-width. While we still recommend passing a custom min-width based on your data, this default will help prevent resizable columns from becoming too small. | ||
- The filter and sort icons in a column header will now wrap to the next line, before the text starts wrapping. | ||
- For cells that have a string value, the value will be automatically truncated after three lines. |
Binary file modified
BIN
+622 Bytes
(100%)
...reference/iTwinUI_information-panel_Type_default_dark_0_demo-edit_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+591 Bytes
(100%)
...erence/iTwinUI_information-panel_Type_default_hc_dark_0_demo-edit_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+573 Bytes
(100%)
...rence/iTwinUI_information-panel_Type_default_hc_light_0_demo-edit_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+556 Bytes
(100%)
...eference/iTwinUI_information-panel_Type_default_light_0_demo-edit_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+659 Bytes
(100%)
...TwinUI_table_Editable_cell_dark_0_demo-defaultiui-tablenth-child1_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+654 Bytes
(100%)
...nUI_table_Editable_cell_hc_dark_0_demo-defaultiui-tablenth-child1_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+550 Bytes
(100%)
...UI_table_Editable_cell_hc_light_0_demo-defaultiui-tablenth-child1_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+529 Bytes
(100%)
...winUI_table_Editable_cell_light_0_demo-defaultiui-tablenth-child1_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.86 KB
(100%)
.../bitmaps_reference/iTwinUI_table_Type_Default_dark_0_demo-default_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.87 KB
(100%)
...tmaps_reference/iTwinUI_table_Type_Default_hc_dark_0_demo-default_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.74 KB
(100%)
...maps_reference/iTwinUI_table_Type_Default_hc_light_0_demo-default_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.6 KB
(100%)
...bitmaps_reference/iTwinUI_table_Type_Default_light_0_demo-default_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+552 Bytes
(110%)
...itmaps_reference/iTwinUI_table_Type_Empty_dark_0_demo-empty-state_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+639 Bytes
(110%)
...aps_reference/iTwinUI_table_Type_Empty_hc_dark_0_demo-empty-state_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+582 Bytes
(110%)
...ps_reference/iTwinUI_table_Type_Empty_hc_light_0_demo-empty-state_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+561 Bytes
(110%)
...tmaps_reference/iTwinUI_table_Type_Empty_light_0_demo-empty-state_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+625 Bytes
(100%)
...ce/iTwinUI_table_Type_Expandable_Rows_dark_0_demo-expandable-rows_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+585 Bytes
(100%)
...iTwinUI_table_Type_Expandable_Rows_hc_dark_0_demo-expandable-rows_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+574 Bytes
(100%)
...TwinUI_table_Type_Expandable_Rows_hc_light_0_demo-expandable-rows_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+578 Bytes
(100%)
...e/iTwinUI_table_Type_Expandable_Rows_light_0_demo-expandable-rows_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.58 KB
(100%)
...ts/bitmaps_reference/iTwinUI_table_Type_Extras_dark_0_demo-extras_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.57 KB
(100%)
...bitmaps_reference/iTwinUI_table_Type_Extras_hc_dark_0_demo-extras_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.24 KB
(100%)
...itmaps_reference/iTwinUI_table_Type_Extras_hc_light_0_demo-extras_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.22 KB
(100%)
...s/bitmaps_reference/iTwinUI_table_Type_Extras_light_0_demo-extras_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+687 Bytes
(110%)
.../bitmaps_reference/iTwinUI_table_Type_Loading_dark_0_demo-loading_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+677 Bytes
(110%)
...tmaps_reference/iTwinUI_table_Type_Loading_hc_dark_0_demo-loading_0_desktop.png
Oops, something went wrong.
Binary file modified
BIN
+626 Bytes
(110%)
...maps_reference/iTwinUI_table_Type_Loading_hc_light_0_demo-loading_0_desktop.png
Oops, something went wrong.
Binary file modified
BIN
+608 Bytes
(110%)
...bitmaps_reference/iTwinUI_table_Type_Loading_light_0_demo-loading_0_desktop.png
Oops, something went wrong.
Binary file modified
BIN
+651 Bytes
(100%)
...ts/bitmaps_reference/iTwinUI_table_Type_Status_dark_0_demo-status_0_desktop.png
Oops, something went wrong.
Binary file modified
BIN
+656 Bytes
(100%)
...bitmaps_reference/iTwinUI_table_Type_Status_hc_dark_0_demo-status_0_desktop.png
Oops, something went wrong.
Binary file modified
BIN
+557 Bytes
(100%)
...itmaps_reference/iTwinUI_table_Type_Status_hc_light_0_demo-status_0_desktop.png
Oops, something went wrong.
Binary file modified
BIN
+554 Bytes
(100%)
...s/bitmaps_reference/iTwinUI_table_Type_Status_light_0_demo-status_0_desktop.png
Oops, something went wrong.
Binary file modified
BIN
-4.47 KB
(94%)
...t-workshop/cypress-visual-screenshots/baseline/Table.test.ts-Column Manager.png
Oops, something went wrong.
Binary file modified
BIN
+305 Bytes
(100%)
.../react-workshop/cypress-visual-screenshots/baseline/Table.test.ts-Condensed.png
Oops, something went wrong.
Binary file modified
BIN
+2.09 KB
(110%)
...ct-workshop/cypress-visual-screenshots/baseline/Table.test.ts-Custom Filter.png
Oops, something went wrong.
Binary file modified
BIN
+445 Bytes
(100%)
apps/react-workshop/cypress-visual-screenshots/baseline/Table.test.ts-Editable.png
Oops, something went wrong.
Binary file modified
BIN
+323 Bytes
(100%)
...rkshop/cypress-visual-screenshots/baseline/Table.test.ts-Expandable Subrows.png
Oops, something went wrong.
Binary file modified
BIN
+1.62 KB
(100%)
apps/react-workshop/cypress-visual-screenshots/baseline/Table.test.ts-Filters.png
Oops, something went wrong.
Binary file modified
BIN
+540 Bytes
(100%)
apps/react-workshop/cypress-visual-screenshots/baseline/Table.test.ts-Full.png
Oops, something went wrong.
Binary file modified
BIN
+1.28 KB
(100%)
apps/react-workshop/cypress-visual-screenshots/baseline/Table.test.ts-Full2.png
Oops, something went wrong.
Binary file modified
BIN
+507 Bytes
(100%)
...ct-workshop/cypress-visual-screenshots/baseline/Table.test.ts-Global Filter.png
Oops, something went wrong.
Binary file modified
BIN
+4 Bytes
(100%)
...ct-workshop/cypress-visual-screenshots/baseline/Table.test.ts-Initial State.png
Oops, something went wrong.
Binary file modified
BIN
-42 Bytes
(100%)
.../react-workshop/cypress-visual-screenshots/baseline/Table.test.ts-Localized.png
Oops, something went wrong.
Binary file modified
BIN
+74 Bytes
(100%)
...orkshop/cypress-visual-screenshots/baseline/Table.test.ts-Resizable Columns.png
Oops, something went wrong.
Binary file modified
BIN
-109 Bytes
(100%)
...hop/cypress-visual-screenshots/baseline/Table.test.ts-Status And Cell Icons.png
Oops, something went wrong.
Binary file modified
BIN
+584 Bytes
(100%)
...-visual-screenshots/baseline/Table.test.ts-With Manual Paginator And Filter.png
Oops, something went wrong.
Binary file modified
BIN
+644 Bytes
(100%)
...t-workshop/cypress-visual-screenshots/baseline/Table.test.ts-With Paginator.png
Oops, something went wrong.
Binary file modified
BIN
+505 Bytes
(100%)
...rkshop/cypress-visual-screenshots/baseline/Table.test.ts-Zebra Striped Rows.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.