fix(web): stick action bar on search (#5459)

This commit is contained in:
martin 2023-12-04 17:24:19 +01:00 committed by GitHub
parent 2195730fa6
commit 6111bf157e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,23 +106,25 @@
<section> <section>
{#if isMultiSelectionMode} {#if isMultiSelectionMode}
<AssetSelectControlBar assets={selectedAssets} clearSelect={() => (selectedAssets = new Set())}> <div class="fixed z-[100] top-0 left-0 w-full">
<CreateSharedLink /> <AssetSelectControlBar assets={selectedAssets} clearSelect={() => (selectedAssets = new Set())}>
<CircleIconButton title="Select all" icon={mdiSelectAll} on:click={handleSelectAll} /> <CreateSharedLink />
<AssetSelectContextMenu icon={mdiPlus} title="Add"> <CircleIconButton title="Select all" icon={mdiSelectAll} on:click={handleSelectAll} />
<AddToAlbum /> <AssetSelectContextMenu icon={mdiPlus} title="Add">
<AddToAlbum shared /> <AddToAlbum />
</AssetSelectContextMenu> <AddToAlbum shared />
<DeleteAssets {onAssetDelete} /> </AssetSelectContextMenu>
<DeleteAssets {onAssetDelete} />
<AssetSelectContextMenu icon={mdiDotsVertical} title="Add"> <AssetSelectContextMenu icon={mdiDotsVertical} title="Add">
<DownloadAction menuItem /> <DownloadAction menuItem />
<FavoriteAction menuItem removeFavorite={isAllFavorite} /> <FavoriteAction menuItem removeFavorite={isAllFavorite} />
<ArchiveAction menuItem unarchive={isAllArchived} /> <ArchiveAction menuItem unarchive={isAllArchived} />
<ChangeDate menuItem /> <ChangeDate menuItem />
<ChangeLocation menuItem /> <ChangeLocation menuItem />
</AssetSelectContextMenu> </AssetSelectContextMenu>
</AssetSelectControlBar> </AssetSelectControlBar>
</div>
{:else} {:else}
<ControlAppBar on:close-button-click={() => goto(previousRoute)} backIcon={mdiArrowLeft}> <ControlAppBar on:close-button-click={() => goto(previousRoute)} backIcon={mdiArrowLeft}>
<div class="w-full flex-1 pl-4"> <div class="w-full flex-1 pl-4">