Quellcode durchsuchen

fix(style): update data attribute class in authenticated layout (#249)

Sat Naing vor 8 Monaten
Ursprung
Commit
215a7b37a3
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/components/layout/authenticated-layout.tsx

+ 2 - 2
src/components/layout/authenticated-layout.tsx

@@ -26,11 +26,11 @@ export function AuthenticatedLayout({ children }: AuthenticatedLayoutProps) {
 
               // If layout is fixed, set the height
               // to 100svh to prevent overflow
-              'has-[[data-layout=fixed]]:h-svh',
+              'has-data-[layout=fixed]:h-svh',
 
               // If layout is fixed and sidebar is inset,
               // set the height to 100svh - spacing (total margins) to prevent overflow
-              'peer-data-[variant=inset]:has-[[data-layout=fixed]]:h-[calc(100svh-(var(--spacing)*4))]'
+              'peer-data-[variant=inset]:has-data-[layout=fixed]:h-[calc(100svh-(var(--spacing)*4))]'
             )}
           >
             {children ?? <Outlet />}