Skip to content

Commit f2b493c

Browse files
committed
fix #368
1 parent 4bdda3b commit f2b493c

File tree

3 files changed

+29
-25
lines changed

3 files changed

+29
-25
lines changed

apps/svelte.dev/src/routes/_home/Companies.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
margin: 15rem 0 5rem 0;
3030
mask-size: 100%;
3131
mask-image: radial-gradient(ellipse 110rem 500%, white, white 70%, transparent);
32+
overflow: hidden;
3233
}
3334
3435
h2 {

apps/svelte.dev/src/routes/_home/Supporters/index.svelte

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,38 @@
1313
developed by full-time and part-time maintainers, Svelte is here to stay.
1414
</p>
1515

16-
<div class="layout">
17-
<div class="contributors supporters-grid">
18-
{#each contributors as contributor, i}
19-
<a
20-
class="supporter"
21-
style="background-position: {(100 * i) / (contributors.length - 1)}% 0"
22-
style:background-image="url({contributors_img})"
23-
href="https://github.com/{contributor}"
24-
>
25-
{contributor}
26-
</a>
27-
{/each}
16+
<div class="wrapper">
17+
<div class="layout">
18+
<div class="supporters">
19+
{#each contributors as contributor, i}
20+
<a
21+
class="supporter"
22+
style="background-position: {(100 * i) / (contributors.length - 1)}% 0"
23+
style:background-image="url({contributors_img})"
24+
href="https://github.com/{contributor}"
25+
>
26+
{contributor}
27+
</a>
28+
{/each}
2829

29-
{#each donors as donor, i}
30-
<a
31-
class="supporter"
32-
style="background-position: {(100 * i) / (donors.length - 1)}% 0"
33-
style:background-image="url({donors_img})"
34-
href="https://opencollective.com/svelte">{donor}</a
35-
>
36-
{/each}
30+
{#each donors as donor, i}
31+
<a
32+
class="supporter"
33+
style="background-position: {(100 * i) / (donors.length - 1)}% 0"
34+
style:background-image="url({donors_img})"
35+
href="https://opencollective.com/svelte">{donor}</a
36+
>
37+
{/each}
38+
</div>
3739
</div>
3840
</div>
3941

4042
<style>
43+
.wrapper {
44+
width: 100%;
45+
overflow: hidden;
46+
}
47+
4148
.intro {
4249
margin: 1em auto 3.2rem auto;
4350
text-wrap: balance;
@@ -53,7 +60,7 @@
5360
margin: 0 -1rem;
5461
}
5562
56-
.supporters-grid {
63+
.supporters {
5764
position: relative;
5865
display: grid;
5966
grid-template-columns: repeat(12, minmax(0, 1fr));

apps/svelte.dev/src/routes/_home/common.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
max-width: 116rem;
33
}
44

5-
.home {
6-
overflow-x: hidden;
7-
}
8-
95
.home .grid {
106
display: grid;
117
gap: 1em;

0 commit comments

Comments
 (0)