Skip to content

Commit

Permalink
add height break point for login
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurin-W committed Jul 2, 2024
1 parent b396131 commit 6ed4486
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ng-app/src/lib/Login.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,11 @@
}
let width: number;
let breakPoint: number = 361;
let height: number;
const breakPointWidth: number = 530;
const breakPointHeight: number = 900;
let mobile = false;
$: if (width >= breakPoint) {
$: if (width >= breakPointWidth && height >= breakPointHeight) {
mobile = false;
} else {
mobile = true;
Expand Down Expand Up @@ -626,7 +628,7 @@
{/if}
</div>

<svelte:window bind:innerWidth={width} />
<svelte:window bind:innerWidth={width} bind:innerHeight={height} />

<style>
.pazzleline {
Expand Down

0 comments on commit 6ed4486

Please sign in to comment.