mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fix: tabs background width 0
This commit is contained in:
@@ -53,12 +53,11 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div bind:this={containerRef} class="top-0 z-10 text-[0.875rem] pb-0.5 mx-4 tab-width-container">
|
<div bind:this={containerRef} class="top-0 z-10 text-[0.875rem] pb-0.5 mx-4 tab-width-container">
|
||||||
<div class="hidden tab-width"></div>
|
<div class="hidden"></div>
|
||||||
<div class="relative flex">
|
<div class="relative flex">
|
||||||
<MotionDiv
|
<MotionDiv
|
||||||
class="absolute top-0 left-0 z-0 h-full bg-[#DDDDDD] dark:bg-[#38373D] rounded-full opacity-40"
|
class="absolute top-0 left-0 z-0 h-full bg-[#DDDDDD] dark:bg-[#38373D] rounded-full opacity-40 tab-width"
|
||||||
animate={{ x: calcXPos(hoveredTab) }}
|
animate={{ x: calcXPos(hoveredTab) }}
|
||||||
style="width: var(--tab-width)"
|
|
||||||
transition={springTransition}
|
transition={springTransition}
|
||||||
/>
|
/>
|
||||||
{#each tabs as { title }, index}
|
{#each tabs as { title }, index}
|
||||||
@@ -88,9 +87,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</MotionDiv>
|
</MotionDiv>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
|
||||||
.tab-width {
|
|
||||||
width: var(--tab-width);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -15,3 +15,7 @@
|
|||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tab-width {
|
||||||
|
width: var(--tab-width);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user