fix(web): prevent horizontal scroll bar in asset viewer side panel (#27270)

* fix(web): prevent horizontal scroll bar in asset viewer side panel

* simplify
This commit is contained in:
Michel Heusschen 2026-03-26 03:02:31 +01:00 committed by GitHub
parent b9b5dba037
commit 5fb8f9bf1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -580,17 +580,16 @@
<div
transition:fly={{ duration: 150 }}
id="detail-panel"
class="row-start-1 row-span-4 overflow-y-auto transition-all dark:border-l dark:border-s-immich-dark-gray bg-light"
class={[
'row-start-1 row-span-4 overflow-y-auto transition-all dark:border-l dark:border-s-immich-dark-gray bg-light',
showDetailPanel ? 'w-90' : 'w-100',
]}
translate="yes"
>
{#if showDetailPanel}
<div class="w-90 h-full">
<DetailPanel {asset} currentAlbum={album} />
</div>
<DetailPanel {asset} currentAlbum={album} />
{:else if assetViewerManager.isShowEditor}
<div class="w-100 h-full">
<EditorPanel {asset} onClose={closeEditor} />
</div>
<EditorPanel {asset} onClose={closeEditor} />
{/if}
</div>
{/if}