From 308f04df073d9ba5fab12f080544f921ee305d88 Mon Sep 17 00:00:00 2001 From: Julien Vannier Date: Wed, 15 Nov 2023 17:24:43 +0100 Subject: [PATCH] Update filter first column offset --- addon/components/hyper-table/column.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/addon/components/hyper-table/column.js b/addon/components/hyper-table/column.js index 395223a1..5d494cf9 100644 --- a/addon/components/hyper-table/column.js +++ b/addon/components/hyper-table/column.js @@ -73,10 +73,6 @@ export default Component.extend({ actions: { toggleFiltersPanel() { - let isFirstColumn = this.manager.columns.indexOf(this.column) === 1; - let isMedium = this.column.size === 'M'; - let isSmall = this.column.size === 'S'; - if (this.manager.tetherOn !== this.column.key) { this.manager.destroyTetherInstance(); } @@ -89,7 +85,7 @@ export default Component.extend({ target: `#${this.elementId} header`, attachment: 'top right', targetAttachment: 'bottom right', - offset: isFirstColumn ? `0 ${isMedium ? '-50px' : isSmall ? '-130px' : '0'}` : '0 0' + offset: '0 0' }, true );