Skip to content

Commit d7a2a93

Browse files
committed
fix(beams): last fix on scaling ratio !
1 parent 2b00894 commit d7a2a93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/common/beams/background-beams.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ const getRatio = () => window.innerWidth / window.innerHeight;
7373

7474
export const BackgroundBeams: ParentComponent<BackgroundBeamsProps> = props => {
7575
const [{ children }, _props] = splitProps(props, ['children']);
76-
const [scale, setScale] = createSignal(getRatio() > 1 ? 1.2 : 2);
76+
const [scale, setScale] = createSignal(getRatio() > 1 ? 1.5 : 2);
7777

7878
const onResize = () => {
7979
const ratio = getRatio();
8080
if (ratio < 1 && scale() < 2) setScale(2);
81-
else if (ratio > 1 && scale() > 1.2) setScale(1.2);
81+
else if (ratio > 1 && scale() > 1.5) setScale(1.5);
8282
};
8383

8484
onMount(() => window.addEventListener('resize', onResize));

0 commit comments

Comments
 (0)