Skip to content

Commit

Permalink
feat(nx-dev): change shadergradient element width rule
Browse files Browse the repository at this point in the history
Replaced the 'w-screen' class with 'w-full' to ensure the main container spans the full width of the parent element.
  • Loading branch information
bcabanes committed Jul 16, 2024
1 parent 50fd4d5 commit 04ce4cb
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions nx-dev/ui-home/src/lib/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useIsomorphicLayoutEffect } from '@nx/nx-dev/ui-primitives';

export function Hero(): JSX.Element {
return (
<div className="mx-auto h-screen w-screen max-w-7xl px-6 lg:px-8">
<div className="mx-auto h-screen w-full max-w-7xl px-6 lg:px-8">
<ShaderGradientElement />
<div className="absolute left-0 right-0 -z-10 mx-auto flex h-full max-h-screen w-full flex-row justify-between border-b border-dashed border-slate-200/30 px-6 lg:h-full lg:max-w-7xl lg:px-0 dark:border-slate-800/40">
<div className="h-full w-full border-x border-dashed border-slate-200/20 dark:border-slate-800/40" />
Expand Down Expand Up @@ -114,8 +114,12 @@ function ShaderGradientElement() {

if (displayTheme === 'dark')
return (
<BlurFade delay={1} duration={1.8} className="absolute left-0 -z-10">
<div className="h-screen w-screen overflow-hidden">
<BlurFade
delay={1}
duration={1.8}
className="absolute left-0 -z-10 w-full"
>
<div className="h-screen w-full overflow-hidden">
<ShaderGradientCanvas
pointerEvents="none"
eventPrefix="client"
Expand Down Expand Up @@ -156,8 +160,8 @@ function ShaderGradientElement() {
</BlurFade>
);
return (
<BlurFade delay={1} duration={1.8} className="absolute left-0 -z-10">
<div className="h-screen w-screen overflow-hidden">
<BlurFade delay={1} duration={1.8} className="absolute left-0 -z-10 w-full">
<div className="h-screen w-full overflow-hidden">
<ShaderGradientCanvas
pointerEvents="none"
eventPrefix="client"
Expand Down

0 comments on commit 04ce4cb

Please sign in to comment.