Skip to content

Commit fd1afaa

Browse files
fix: improve some tailwind classes (#729)
fix: some tailwind className
1 parent a7e64cd commit fd1afaa

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/components/ui/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ function SidebarRail({ className, ...props }: React.ComponentProps<'button'>) {
316316
onClick={toggleSidebar}
317317
title="Toggle Sidebar"
318318
className={cn(
319-
'absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex',
319+
'absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 hover:after:bg-sidebar-border sm:flex',
320320
'in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize',
321321
'[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize',
322322
'group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar',

src/features/auth/page-login-verify.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default function PageLoginVerify({
8888
<h1 className="text-lg font-bold text-balance">
8989
{t(`${I18N_KEY_PAGE_PREFIX}.title`)}
9090
</h1>
91-
<p className="text-sm text-balance break-words text-muted-foreground">
91+
<p className="text-sm text-balance wrap-break-word text-muted-foreground">
9292
<Trans
9393
t={t}
9494
i18nKey={`${I18N_KEY_PAGE_PREFIX}.description`}

src/layout/app/main-nav-desktop.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ const Item = ({
4848
{...linkProps}
4949
className="flex items-center justify-center gap-2 rounded-md px-2.5 py-2 text-neutral-500 transition hover:bg-black/5 dark:text-neutral-400 dark:hover:bg-white/5 [&.active]:text-primary"
5050
>
51-
<Icon className="size-4 opacity-60 [.active_&]:hidden" />
52-
<IconActive className="hidden size-4 [.active_&]:block" />
51+
<Icon className="size-4 opacity-60 in-[.active]:hidden" />
52+
<IconActive className="hidden size-4 in-[.active]:block" />
5353
<span className="text-sm font-medium">{children}</span>
5454
</Link>
5555
);

src/layout/app/main-nav-mobile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const Item = ({
4040
{...linkProps}
4141
className="flex flex-1 flex-col items-center justify-center text-neutral-500 dark:text-neutral-400 [&.active]:text-primary"
4242
>
43-
<Icon className="size-6 opacity-60 [.active_&]:hidden" />
44-
<IconActive className="hidden size-6 [.active_&]:block" />
43+
<Icon className="size-6 opacity-60 in-[.active]:hidden" />
44+
<IconActive className="hidden size-6 in-[.active]:block" />
4545
<span className="text-2xs font-medium">{children}</span>
4646
</Link>
4747
);

0 commit comments

Comments
 (0)