From a25923f0843bfa18e21883a040f95636f23e45ab Mon Sep 17 00:00:00 2001 From: Vardan Hakobyan Date: Wed, 17 Aug 2022 15:39:56 +0400 Subject: [PATCH] fix: remove tablet specific responsive UI (#1411) * fix: revert tablet responsiveness UI * fix: don't let the "Saving..." text container hide the note title on tablets * chore: better visibility of css classes list * fix: fixed width of notes container column on Tablets --- .../ContentListView/ContentListView.tsx | 6 +- .../Components/Navigation/Navigation.tsx | 42 +- .../Components/NoteView/NoteView.tsx | 12 +- .../Components/Tags/SmartViewsList.tsx | 4 +- .../Components/Tags/SmartViewsListItem.tsx | 34 +- .../Components/Tags/SmartViewsSection.tsx | 5 +- .../javascripts/Components/Tags/TagsList.tsx | 4 +- .../Components/Tags/TagsListItem.tsx | 510 +++++++++--------- .../Components/Tags/TagsSection.tsx | 14 +- .../Components/Tags/TagsSectionAddButton.tsx | 5 +- .../Components/Tags/TagsSectionTitle.tsx | 7 +- packages/web/src/stylesheets/_editor.scss | 5 - packages/web/src/stylesheets/_sn.scss | 15 - 13 files changed, 291 insertions(+), 372 deletions(-) diff --git a/packages/web/src/javascripts/Components/ContentListView/ContentListView.tsx b/packages/web/src/javascripts/Components/ContentListView/ContentListView.tsx index bca369e87..0c0c965a1 100644 --- a/packages/web/src/javascripts/Components/ContentListView/ContentListView.tsx +++ b/packages/web/src/javascripts/Components/ContentListView/ContentListView.tsx @@ -21,6 +21,7 @@ import ResponsivePaneContent from '../ResponsivePane/ResponsivePaneContent' import { AppPaneId } from '../ResponsivePane/AppPaneMetadata' import { useResponsiveAppPane } from '../ResponsivePane/ResponsivePaneProvider' import { StreamingFileReader } from '@standardnotes/filepicker' +import { classNames } from '@/Utils/ConcatenateClassNames' type Props = { accountMenuController: AccountMenuController @@ -179,7 +180,10 @@ const ContentListView: FunctionComponent = ({ return (
diff --git a/packages/web/src/javascripts/Components/Navigation/Navigation.tsx b/packages/web/src/javascripts/Components/Navigation/Navigation.tsx index 766bab154..ddef9a198 100644 --- a/packages/web/src/javascripts/Components/Navigation/Navigation.tsx +++ b/packages/web/src/javascripts/Components/Navigation/Navigation.tsx @@ -10,7 +10,6 @@ import SearchBar from '@/Components/SearchBar/SearchBar' import ResponsivePaneContent from '@/Components/ResponsivePane/ResponsivePaneContent' import { AppPaneId } from '@/Components/ResponsivePane/AppPaneMetadata' import { classNames } from '@/Utils/ConcatenateClassNames' -import Icon from '@/Components/Icon/Icon' type Props = { application: WebApplication @@ -20,7 +19,6 @@ const Navigation: FunctionComponent = ({ application }) => { const viewControllerManager = useMemo(() => application.getViewControllerManager(), [application]) const ref = useRef(null) const [panelWidth, setPanelWidth] = useState(0) - const [isPanelExpanded, setIsPanelExpanded] = useState(true) useEffect(() => { const removeObserver = application.addEventObserver(async () => { @@ -51,37 +49,21 @@ const Navigation: FunctionComponent = ({ application }) => { return (