Skip to content

Commit bbe2bdb

Browse files
docs: update sponsor image to be larger (#5659)
refactor: remove extra newline
1 parent 047227f commit bbe2bdb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs-next/src/components/Supporters.astro

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@ interface Props {
1010
data: Supporter[];
1111
size: "small" | "medium";
1212
}
13+
14+
const { size, data } = Astro.props;
1315
---
1416

15-
<div class:list={["supporters", `supporters-${Astro.props.size}`]}>
17+
<div class:list={["supporters", `supporters-${size}`]}>
1618
{
17-
Astro.props.data.map((supporter) => (
19+
data.map((supporter) => (
1820
<a class="supporter" href={supporter.website}>
1921
<img
2022
alt={supporter.name}
2123
class="supporter-image"
2224
src={
23-
Astro.props.size === "small"
25+
size === "small"
2426
? supporter.imgUrlSmall
2527
: supporter.imgUrlMed
2628
}
@@ -63,8 +65,8 @@ interface Props {
6365
}
6466

6567
.supporters-medium img.supporter-image {
66-
height: 4rem;
67-
width: 4rem;
68+
height: 6rem;
69+
width: 20rem;
6870
object-fit: contain;
6971
}
7072
</style>

0 commit comments

Comments
 (0)