From b2f02d473ec60988ddbdf852c536ee806f5723ca Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 13 Sep 2023 10:39:06 -0600 Subject: [PATCH] Hiding Size column when editing Tags in mobile. --- app/src/Tags.js | 29 +++++++++++++++++++++-------- app/src/components/Archive.js | 2 +- app/src/components/Channels.js | 1 - app/src/components/Common.js | 11 +++++++---- app/src/hooks/customHooks.js | 2 +- 5 files changed, 30 insertions(+), 15 deletions(-) diff --git a/app/src/Tags.js b/app/src/Tags.js index 885ede22..5215540d 100644 --- a/app/src/Tags.js +++ b/app/src/Tags.js @@ -230,6 +230,7 @@ function EditTagsModal() { {key: 'name', text: 'Name', sortBy: 'name', width: 8}, {key: 'count', text: 'Count', sortBy: i => i['file_group_count'] + i['zim_entry_count'], width: 2}, ]; + const mobileTableHeaders = tableHeaders.slice(3); return <> - } - rowKey='name' - tableHeaders={tableHeaders} - /> + + } + rowKey='name' + tableHeaders={mobileTableHeaders} + /> + + + } + rowKey='name' + tableHeaders={tableHeaders} + /> +