diff --git a/packages/web/src/javascripts/Components/Popover/MobilePopoverContent.tsx b/packages/web/src/javascripts/Components/Popover/MobilePopoverContent.tsx index c536d53bc..66ee2b216 100644 --- a/packages/web/src/javascripts/Components/Popover/MobilePopoverContent.tsx +++ b/packages/web/src/javascripts/Components/Popover/MobilePopoverContent.tsx @@ -2,6 +2,7 @@ import { useDisableBodyScrollOnMobile } from '@/Hooks/useDisableBodyScrollOnMobi import { classNames } from '@standardnotes/snjs' import { ReactNode } from 'react' import Portal from '../Portal/Portal' +import MobileModalAction from '../Shared/MobileModalAction' import { useModalAnimation } from '../Shared/useModalAnimation' const DisableScroll = () => { @@ -36,12 +37,12 @@ const MobilePopoverContent = ({ ref={setPopoverElement} className="fixed top-0 left-0 z-modal flex h-full w-full flex-col bg-default pt-safe-top pb-safe-bottom" > -
+
-
{title}
- +
{children}
diff --git a/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryModalDialogContent.tsx b/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryModalDialogContent.tsx index 1bbfd314c..3111d102b 100644 --- a/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryModalDialogContent.tsx +++ b/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryModalDialogContent.tsx @@ -1,5 +1,5 @@ import { observer } from 'mobx-react-lite' -import { useState } from 'react' +import { useRef, useState } from 'react' import HistoryListContainer from './HistoryListContainer' import { RevisionHistoryModalContentProps } from './RevisionHistoryModalProps' import HistoryModalFooter from './HistoryModalFooter' @@ -8,6 +8,8 @@ import { NoteHistoryController } from '@/Controllers/NoteHistory/NoteHistoryCont import Icon from '../Icon/Icon' import { classNames } from '@standardnotes/utils' import { HistoryModalMobileTab } from './utils' +import MobileModalAction from '../Shared/MobileModalAction' +import Popover from '../Popover/Popover' const HistoryModalDialogContent = ({ application, @@ -19,37 +21,52 @@ const HistoryModalDialogContent = ({ }: RevisionHistoryModalContentProps) => { const [noteHistoryController] = useState(() => new NoteHistoryController(application, note, selectionController)) - const [selectedMobileTab, setSelectedMobileTab] = useState('Content') + const [selectedMobileTab, setSelectedMobileTab] = useState('List') + const tabOptionRef = useRef(null) + const [showTabMenu, setShowTabMenu] = useState(false) + const toggleTabMenu = () => setShowTabMenu((show) => !show) return ( <> -
- - -
History
- + + + +
History
+ + Done +