Skip to content

Commit

Permalink
Remove redundant div causing cumulative layout shifts...
Browse files Browse the repository at this point in the history
  • Loading branch information
multivac61 committed Mar 2, 2023
1 parent 8f4228c commit 0ff0493
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/app.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="is">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
Expand Down
33 changes: 19 additions & 14 deletions src/routes/+page.svelte
Expand Up @@ -5,7 +5,7 @@
export let data: PageData
const today = `Í dag, ${new Date()
.toLocaleDateString('is-IS', {
.toLocaleString('is-is', {
weekday: 'long',
year: 'numeric',
month: 'long',
Expand Down Expand Up @@ -60,18 +60,23 @@
</div>
</header>
<div class="grid">
<div style="white-space : break-spaces;">
<!-- prettier-ignore -->
<div>
<label for="from">
<small> Frá {float_to_hh_mm(from)} </small>
<input bind:value={from} type=range min=12 max=23.5 step=0.25 id=from name=from />
</label>
<label for="to">
<small> Til {float_to_hh_mm(to)} </small>
<input bind:value={to} type=range min=12 max=23.5 step=0.25 id=to name=to />
</label>
</div>
<div>
<label for="from">
<small> Frá {float_to_hh_mm(from)} </small>
<input
bind:value={from}
type="range"
min="12"
max="23.5"
step="0.25"
id="from"
name="from"
/>
</label>
<label for="to">
<small> Til {float_to_hh_mm(to)} </small>
<input bind:value={to} type="range" min="12" max="23.5" step="0.25" id="to" name="to" />
</label>
</div>
<div>
<div class="grid">
Expand Down Expand Up @@ -106,7 +111,7 @@
<summary> {title} ({release_year}) </summary>
<div class="grid">
<div>
<img src={poster_url} alt={title} width="350px" />
<img src={poster_url} alt={title} width="350px" height="auto" />
<br />
<small>{genres.join(', ')}. <a href={trailer_url}>Sjá stiklu.</a></small>
<br />
Expand Down

1 comment on commit 0ff0493

@vercel
Copy link

@vercel vercel bot commented on 0ff0493 Mar 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.