We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b00894 commit d7a2a93Copy full SHA for d7a2a93
src/components/common/beams/background-beams.tsx
@@ -73,12 +73,12 @@ const getRatio = () => window.innerWidth / window.innerHeight;
73
74
export const BackgroundBeams: ParentComponent<BackgroundBeamsProps> = props => {
75
const [{ children }, _props] = splitProps(props, ['children']);
76
- const [scale, setScale] = createSignal(getRatio() > 1 ? 1.2 : 2);
+ const [scale, setScale] = createSignal(getRatio() > 1 ? 1.5 : 2);
77
78
const onResize = () => {
79
const ratio = getRatio();
80
if (ratio < 1 && scale() < 2) setScale(2);
81
- else if (ratio > 1 && scale() > 1.2) setScale(1.2);
+ else if (ratio > 1 && scale() > 1.5) setScale(1.5);
82
};
83
84
onMount(() => window.addEventListener('resize', onResize));
0 commit comments