diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-05-04 00:54:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 00:54:35 -0500 |
commit | d97e75c62f39b874af97b40ebc7211841d9ce1b7 (patch) | |
tree | 6cbe62dfe8baa44c73d8e480f27af4041e2875ae /src/view/com/modals/Modal.tsx | |
parent | 4ef853ef6cd649af12f0810b8c38911cd639e033 (diff) | |
download | voidsky-d97e75c62f39b874af97b40ebc7211841d9ce1b7.tar.zst |
[APP-539] Rework lightbox and alt-image behaviors (#573)
* Replace the long press on the lightbox with footer controls * Remove long-press from images in the feed * Tune the lightbox footer control ui * Replace the AltImageRead modal with the ability to view all alt text in the lightbox footer * Tune lightbox footer for iOS * Add alt text to the web lightbox * Fix lint * a11y slight changes --------- Co-authored-by: renahlee <renahlee@outlook.com>
Diffstat (limited to 'src/view/com/modals/Modal.tsx')
-rw-r--r-- | src/view/com/modals/Modal.tsx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/view/com/modals/Modal.tsx b/src/view/com/modals/Modal.tsx index b5d71a116..18b7ae4c4 100644 --- a/src/view/com/modals/Modal.tsx +++ b/src/view/com/modals/Modal.tsx @@ -13,7 +13,6 @@ import * as ServerInputModal from './ServerInput' import * as ReportPostModal from './ReportPost' import * as RepostModal from './Repost' import * as AltImageModal from './AltImage' -import * as AltImageReadModal from './AltImageRead' import * as ReportAccountModal from './ReportAccount' import * as DeleteAccountModal from './DeleteAccount' import * as ChangeHandleModal from './ChangeHandle' @@ -76,9 +75,6 @@ export const ModalsContainer = observer(function ModalsContainer() { } else if (activeModal?.name === 'alt-text-image') { snapPoints = AltImageModal.snapPoints element = <AltImageModal.Component {...activeModal} /> - } else if (activeModal?.name === 'alt-text-image-read') { - snapPoints = AltImageReadModal.snapPoints - element = <AltImageReadModal.Component {...activeModal} /> } else if (activeModal?.name === 'change-handle') { snapPoints = ChangeHandleModal.snapPoints element = <ChangeHandleModal.Component {...activeModal} /> |