Fit the panel background to its contents size (kind of)

This commit is contained in:
Johannes Zillmann 2021-03-27 07:09:18 +01:00
parent efcd2b01c0
commit 1a6bddf460

View File

@ -22,7 +22,10 @@
}
</script>
<div class="absolute mt-2 p-2 flex bg-gray-200 shadow-lg rounded-sm overflow-auto max-h-96" transition:slide>
<div
class="absolute mt-2 p-2 flex bg-gray-200 shadow-lg rounded-sm overflow-auto max-h-96"
style="max-width: {pageControl.totalPages * 45}px;"
transition:slide>
<span class="mt-1 pr-2" on:click={$pagePinned && unpinPage}>
<Collection size="1x" class={$pagePinned ? 'hover:text-select cursor-pointer' : 'opacity-50'} />
</span>