From b1621d697d9beb21514b1592e4f1539216c68c47 Mon Sep 17 00:00:00 2001 From: btvoidx <37330718+btvoidx@users.noreply.github.com> Date: Fri, 13 Aug 2021 16:18:36 +0300 Subject: [PATCH] [fix] Prevent layout shifting on hovering "Who's using Svelte?" (#6639) --- .../routes/_components/WhosUsingSvelte.svelte | 61 ++++++++++--------- 1 file changed, 33 insertions(+), 28 deletions(-) diff --git a/site/src/routes/_components/WhosUsingSvelte.svelte b/site/src/routes/_components/WhosUsingSvelte.svelte index 0b48800e86..d1de57fd2a 100644 --- a/site/src/routes/_components/WhosUsingSvelte.svelte +++ b/site/src/routes/_components/WhosUsingSvelte.svelte @@ -1,10 +1,30 @@ +
+ {#each sortedCompanies as { href, filename, alt, style, picture, span }, index} + + {#if picture} + + {#each picture as { type, srcset }} + + {/each} + + + {:else} + + {#if span} + {span} + {/if} + {/if} + + {/each} +
+ - -
- {#each sortedCompanies as {href, filename, alt, style, picture, span}, index} - - {#if picture} - - {#each picture as {type, srcset}} - - {/each} - - - {:else} - - {#if span} - {span} - {/if} - {/if} - - {/each} -