From cf6149bf249045f039b78f8ff078a7f3f9c4eb9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Gla=CC=88ser?= Date: Mon, 28 Sep 2026 07:25:16 +0200 Subject: [PATCH] remove unspecified large table reset control --- components/data-display.html | 1 - scripts/large-table-column-resize.js | 18 ------------------ styles/42-components-data-display.css | 14 -------------- 3 files changed, 33 deletions(-) diff --git a/components/data-display.html b/components/data-display.html index d57639e..0c15b1d 100644 --- a/components/data-display.html +++ b/components/data-display.html @@ -94,7 +94,6 @@ -
diff --git a/scripts/large-table-column-resize.js b/scripts/large-table-column-resize.js index 194e7a8..349aa30 100644 --- a/scripts/large-table-column-resize.js +++ b/scripts/large-table-column-resize.js @@ -131,18 +131,6 @@ updateHandleState(table, safeWidths, minWidth); }; - const resetWidths = (table) => { - const headers = getColumnHeaders(table); - const minWidth = getMinWidth(table); - const widths = getDefaultWidths(table, headers, minWidth); - try { - window.localStorage.removeItem(getStorageKey(table)); - } catch (error) { - // Storage can be unavailable in privacy-restricted browser contexts. - } - applyWidths(table, widths, minWidth); - }; - const resizeColumn = (table, index, delta, persist) => { const widths = [...table._largeTableColumnWidths]; const minWidth = getMinWidth(table); @@ -225,12 +213,6 @@ } }); - table.addEventListener('click', (event) => { - const reset = event.target.closest('[data-large-table-reset-widths]'); - if (reset && table.contains(reset)) { - resetWidths(table); - } - }); }; window.sgInitLargeTableColumnResize = (options = {}) => { diff --git a/styles/42-components-data-display.css b/styles/42-components-data-display.css index c6fe62d..ceb1b15 100644 --- a/styles/42-components-data-display.css +++ b/styles/42-components-data-display.css @@ -173,20 +173,6 @@ outline-offset: -1px; } -.sg-large-table__reset-widths { - flex: 0 0 auto; - border: var(--border-none); - background: var(--color-transparent); - color: var(--color-font-light); - font: inherit; - cursor: pointer; -} - -.sg-large-table__reset-widths:focus-visible { - outline: 2px solid var(--color-font-light); - outline-offset: 2px; -} - .sg-large-table__sort-button { display: flex; align-items: center;