Skip to content

Commit

Permalink
feat(tab): mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
macgeargear committed Sep 13, 2024
1 parent 2a2c466 commit a42874f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/Tabs/TabsList.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="border-b border-sucu-gray-light">
<nav class="-mb-px flex space-x-8 text-sucu-pink-hover">
<nav class="-mb-2 sm:mb-0 flex space-x-8 text-sucu-pink-hover">
<slot />
</nav>
</div>
4 changes: 2 additions & 2 deletions src/lib/components/Tabs/TabsTrigger.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div class="relative inline-block">
<button
class={cn(
'mx-auto whitespace-nowrap py-4 px-1 font-medium text-xl text-sucu-gray hover:text-sucu-pink-hover hover:border-gray-300',
'text-base mx-auto whitespace-nowrap py-4 px-1 font-medium sm:text-xl text-sucu-gray hover:text-sucu-pink-hover hover:border-gray-300',
{
'border-sucu-pink-hover text-indigo': isActive
}
Expand All @@ -42,7 +42,7 @@
{#if isActive}
<div
class={cn(
'absolute left-1/2 transform -translate-x-1/2 -bottom-1 h-2 w-[120%] bg-sucu-pink-hover rounded-lg'
'absolute left-1/2 transform -translate-x-1/2 bottom-[5.5px] sm:-bottom-1 h-1 sm:h-2 w-[120%] bg-sucu-pink-hover rounded-lg'
)}
transition:slide={{ duration: 300, axis: 'x' }}
/>
Expand Down

0 comments on commit a42874f

Please sign in to comment.