feat: Re-enabled multiple selection on mobile, with improved UI (#2609)

This commit is contained in:
Aman Harwara
2023-10-27 17:54:51 +05:30
committed by GitHub
parent 66a6c61ffa
commit c8dec9bfec
7 changed files with 172 additions and 31 deletions

View File

@@ -289,7 +289,7 @@ const NotesOptions = ({ notes, closeMenu }: NotesOptionsProps) => {
</MenuSection>
)}
<MenuSection>
<MenuSection className={notes.length > 1 ? 'md:!mb-2' : ''}>
{application.featuresController.isVaultsEnabled() && (
<AddToVaultMenuOption
iconClassName={iconClass}
@@ -507,7 +507,7 @@ const NotesOptions = ({ notes, closeMenu }: NotesOptionsProps) => {
)}
</MenuSection>
{notes.length === 1 ? (
{notes.length === 1 && (
<>
{notes[0].noteType === NoteType.Super && (
<SuperNoteOptions
@@ -538,8 +538,6 @@ const NotesOptions = ({ notes, closeMenu }: NotesOptionsProps) => {
<NoteSizeWarning note={notes[0]} />
</>
) : (
<div className="h-2" />
)}
<ModalOverlay isOpen={showExportSuperModal} close={closeSuperExportModal}>