diff --git a/packages/web/src/javascripts/Components/PermissionsModal/PermissionsModal.tsx b/packages/web/src/javascripts/Components/PermissionsModal/PermissionsModal.tsx index 0b497f478..fccd41dd7 100644 --- a/packages/web/src/javascripts/Components/PermissionsModal/PermissionsModal.tsx +++ b/packages/web/src/javascripts/Components/PermissionsModal/PermissionsModal.tsx @@ -25,7 +25,7 @@ const PermissionsModal = ({ callback, component, dismiss, permissionsString }: P }, [callback, dismiss]) return ( - + Activate Component
@@ -33,7 +33,7 @@ const PermissionsModal = ({ callback, component, dismiss, permissionsString }: P {' would like to interact with your '} {permissionsString}
-
+

Components use an offline messaging system to communicate. Learn more at{' '} diff --git a/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/Bullet.tsx b/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/Bullet.tsx index 1b85411f7..78676a7c2 100644 --- a/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/Bullet.tsx +++ b/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/Bullet.tsx @@ -5,7 +5,7 @@ type Props = { } const Bullet: FunctionComponent = ({ className = '' }) => ( -

+
) export default Bullet diff --git a/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/SaveSecretKey.tsx b/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/SaveSecretKey.tsx index c5ad39c0a..55b9166a8 100644 --- a/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/SaveSecretKey.tsx +++ b/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/SaveSecretKey.tsx @@ -39,9 +39,8 @@ const SaveSecretKey: FunctionComponent = ({ activation: act }) => {
-
+
-
-
, download]} value={act.secretKey} + className={{ container: 'ml-2' }} />
diff --git a/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/ScanQRCode.tsx b/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/ScanQRCode.tsx index f87d5e9e4..17c568d02 100644 --- a/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/ScanQRCode.tsx +++ b/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/ScanQRCode.tsx @@ -20,11 +20,10 @@ const ScanQRCode: FunctionComponent = ({ activation: act }) => { return ( Step 1 of 3 - Scan QR code - +
-
diff --git a/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/Verification.tsx b/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/Verification.tsx index 91b4ca9d2..55ef41733 100644 --- a/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/Verification.tsx +++ b/packages/web/src/javascripts/Components/Preferences/Panes/Security/TwoFactorAuth/Verification.tsx @@ -20,24 +20,30 @@ const Verification: FunctionComponent = ({ activation: act }) => { Step 3 of 3 - Verification -
-
- -
+
+
- Enter your secret key: + + + Enter your secret key: +
-
- +
-
- -
+
- Verify the authentication code generated by your authenticator app: + + + Verify the authentication code generated by your authenticator app: +
-
- +
diff --git a/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryListContainer.tsx b/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryListContainer.tsx index 9aa8af8a0..0fbb28cc5 100644 --- a/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryListContainer.tsx +++ b/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryListContainer.tsx @@ -46,7 +46,7 @@ const HistoryListContainer: FunctionComponent = ({ features, noteHistoryC } return ( -
+
diff --git a/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryModalDialog.tsx b/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryModalDialog.tsx index 775be1005..89ae84ac6 100644 --- a/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryModalDialog.tsx +++ b/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryModalDialog.tsx @@ -1,20 +1,12 @@ import { getPlatformString } from '@/Utils' import { DialogOverlay, DialogContent } from '@reach/dialog' import { ReactNode } from 'react' -import styled from 'styled-components' type Props = { children: ReactNode onDismiss: () => void } -const StyledDialogContent = styled(DialogContent)` - width: 90%; - max-width: 90%; - min-height: 90%; - background: var(--modal-background-color); -` - const HistoryModalDialog = ({ children, onDismiss }: Props) => { return ( { onDismiss={onDismiss} aria-label="Note revision history" > - +
{children}
-
+
) } diff --git a/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryModalDialogContent.tsx b/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryModalDialogContent.tsx index 2d9b4b975..e096d5786 100644 --- a/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryModalDialogContent.tsx +++ b/packages/web/src/javascripts/Components/RevisionHistoryModal/HistoryModalDialogContent.tsx @@ -5,6 +5,8 @@ import { RevisionHistoryModalContentProps } from './RevisionHistoryModalProps' import HistoryModalFooter from './HistoryModalFooter' import HistoryModalContentPane from './HistoryModalContentPane' import { NoteHistoryController } from '@/Controllers/NoteHistory/NoteHistoryController' +import Icon from '../Icon/Icon' +import { classNames } from '@/Utils/ConcatenateClassNames' const HistoryModalDialogContent = ({ application, @@ -16,11 +18,52 @@ const HistoryModalDialogContent = ({ }: RevisionHistoryModalContentProps) => { const [noteHistoryController] = useState(() => new NoteHistoryController(application, note, selectionController)) + const [selectedMobileTab, setSelectedMobileTab] = useState<'List' | 'Content'>('Content') + return ( <> +
+ + + +
- -
+
+ +
+
{ }, [deleteRemoteRevision, selectedEntry]) return ( -
-
-
+
+ )} -
+ )}
) diff --git a/packages/web/src/javascripts/Components/Shared/ModalDialog.tsx b/packages/web/src/javascripts/Components/Shared/ModalDialog.tsx index e973b6b6a..ecb62af06 100644 --- a/packages/web/src/javascripts/Components/Shared/ModalDialog.tsx +++ b/packages/web/src/javascripts/Components/Shared/ModalDialog.tsx @@ -12,11 +12,11 @@ const ModalDialog = ({ children, onDismiss, className }: Props) => { const ldRef = useRef(null) return ( - + diff --git a/packages/web/src/stylesheets/_modals.scss b/packages/web/src/stylesheets/_modals.scss index dea0154eb..fdf40b711 100644 --- a/packages/web/src/stylesheets/_modals.scss +++ b/packages/web/src/stylesheets/_modals.scss @@ -47,6 +47,9 @@ width: 100%; height: 100%; + padding-left: 1rem; + padding-right: 1rem; + background-color: transparent; display: flex; align-items: center;