feat: various improvements to styles and bugs

This commit is contained in:
SethBurkart123
2024-10-06 10:03:15 +11:00
parent 922a3d5837
commit 83b0e8de3f
8 changed files with 38 additions and 24 deletions
@@ -72,7 +72,7 @@
>
<div class="flex">
{#each tabs as { Content, props }, index}
<div class="absolute focus:outline-none w-full h-full transition-opacity duration-300 overflow-y-scroll tab {activeTab === index ? 'opacity-100 active' : 'opacity-0'}"
<div class="absolute focus:outline-none w-full h-full transition-opacity duration-300 overflow-y-scroll no-scrollbar tab {activeTab === index ? 'opacity-100 active' : 'opacity-0'}"
style="left: {index * 100}%;">
<Content {...props} />
</div>
@@ -45,12 +45,23 @@
}
</script>
<div class="fixed inset-0 z-50 flex items-end justify-center bg-black bg-opacity-70" onclick={() => hideModal()} onkeydown={() => hideModal()} role="button" tabindex="-1" transition:fade>
<div
class="fixed inset-0 z-50 flex items-end justify-center bg-black bg-opacity-70"
onclick={(e) => {
if (e.target === e.currentTarget) hideModal();
}}
onkeydown={(e) => {
if (e.target === e.currentTarget) hideModal();
}}
role="button"
tabindex="-1"
transition:fade
>
<!-- svelte-ignore a11y_no_static_element_interactions -->
<div
bind:this={modalElement}
class="w-full max-w-xl h-[95%] p-4 bg-white rounded-t-2xl dark:bg-zinc-800 overflow-scroll"
onclick={(e) => e.stopPropagation()}
class="w-full max-w-[50%] h-[95%] p-4 bg-white rounded-t-2xl dark:bg-zinc-800 overflow-scroll no-scrollbar cursor-auto"
onclick={(e) => e.stopPropagation()}
onkeydown={(e) => e.stopPropagation()}
>
<div class="relative h-auto">
@@ -98,7 +98,7 @@
</script>
<div
class="w-full my-3"
class="w-full mt-3 mb-1"
role="list"
tabindex="-1"
ondragover={handleDragOver}