From 3c869fe6934a73b5bbb569286aea08fbbda4b1ba Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Wed, 18 Jan 2023 23:44:21 +0530 Subject: [PATCH] feat: Added ability to hide date/tags columns and icons in table view --- .../Header/DisplayOptionsMenu.tsx | 140 +++++++++--------- 1 file changed, 71 insertions(+), 69 deletions(-) diff --git a/packages/web/src/javascripts/Components/ContentListView/Header/DisplayOptionsMenu.tsx b/packages/web/src/javascripts/Components/ContentListView/Header/DisplayOptionsMenu.tsx index 990ce11fd..ca2a2ad83 100644 --- a/packages/web/src/javascripts/Components/ContentListView/Header/DisplayOptionsMenu.tsx +++ b/packages/web/src/javascripts/Components/ContentListView/Header/DisplayOptionsMenu.tsx @@ -346,80 +346,82 @@ const DisplayOptionsMenu: FunctionComponent = ({ ) : null} - {!shouldHideNonApplicableOptions && ( - <> - -
View
- {!isFilesSmartView && ( + <> + +
View
+ {!shouldHideNonApplicableOptions && !isFilesSmartView && ( + +
Show note preview
+
+ )} + + Show date + + + Show tags + + + Show icon + + {!shouldHideNonApplicableOptions && ( + <> + +
Other
-
Show note preview
+ Show pinned
- )} - - Show date - - - Show tags - - - Show icon - - -
Other
- - Show pinned - - - Show protected - - - Show archived - - - Show trashed - - - )} + + Show protected + + + Show archived + + + Show trashed + + + )} + {currentMode === 'tag' && !isSystemTag && DailyEntryModeEnabled && !isTableViewEnabled && ( <>