Skip to content

Commit 0ff0493

Browse files
committed
Remove redundant div causing cumulative layout shifts...
1 parent 8f4228c commit 0ff0493

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

src/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="is">
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width" />

src/routes/+page.svelte

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
export let data: PageData
66
77
const today = `Í dag, ${new Date()
8-
.toLocaleDateString('is-IS', {
8+
.toLocaleString('is-is', {
99
weekday: 'long',
1010
year: 'numeric',
1111
month: 'long',
@@ -60,18 +60,23 @@
6060
</div>
6161
</header>
6262
<div class="grid">
63-
<div style="white-space : break-spaces;">
64-
<!-- prettier-ignore -->
65-
<div>
66-
<label for="from">
67-
<small> Frá {float_to_hh_mm(from)} </small>
68-
<input bind:value={from} type=range min=12 max=23.5 step=0.25 id=from name=from />
69-
</label>
70-
<label for="to">
71-
<small> Til {float_to_hh_mm(to)} </small>
72-
<input bind:value={to} type=range min=12 max=23.5 step=0.25 id=to name=to />
73-
</label>
74-
</div>
63+
<div>
64+
<label for="from">
65+
<small> Frá {float_to_hh_mm(from)} </small>
66+
<input
67+
bind:value={from}
68+
type="range"
69+
min="12"
70+
max="23.5"
71+
step="0.25"
72+
id="from"
73+
name="from"
74+
/>
75+
</label>
76+
<label for="to">
77+
<small> Til {float_to_hh_mm(to)} </small>
78+
<input bind:value={to} type="range" min="12" max="23.5" step="0.25" id="to" name="to" />
79+
</label>
7580
</div>
7681
<div>
7782
<div class="grid">
@@ -106,7 +111,7 @@
106111
<summary> {title} ({release_year}) </summary>
107112
<div class="grid">
108113
<div>
109-
<img src={poster_url} alt={title} width="350px" />
114+
<img src={poster_url} alt={title} width="350px" height="auto" />
110115
<br />
111116
<small>{genres.join(', ')}. <a href={trailer_url}>Sjá stiklu.</a></small>
112117
<br />

0 commit comments

Comments
 (0)