Skip to content

Commit 2e2be1a

Browse files
HiDeoodelucisArmandPhilippot
authored andcommitted
Prevent <Card> icon from being shrunk (withastro#3248)
Co-authored-by: delucis <[email protected]> Co-authored-by: ArmandPhilippot <[email protected]>
1 parent 7b7388a commit 2e2be1a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/two-dolphins-drive.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/starlight': patch
3+
---
4+
5+
Prevents [icons in the `<Card>` component](https://starlight.astro.build/components/cards/#add-icons-to-cards) from being shrunk in some narrow viewports.

packages/starlight/user-components/Card.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ const { icon, title } = Astro.props;
5858
background-color: var(--sl-card-bg);
5959
padding: 0.2em;
6060
border-radius: 0.25rem;
61+
flex-shrink: 0;
6162
}
6263
.card .body {
6364
margin: 0;

0 commit comments

Comments
 (0)