diff options
author | HiDeoo | 2025-06-13 14:49:26 +0200 |
---|---|---|
committer | GitHub | 2025-06-13 14:49:26 +0200 |
commit | 16c1239b36346e84b794fab819d6ad7a9854a244 (patch) | |
tree | ecd1eaecbdda94e1027065df4635e63c7bf8203d | |
parent | 3064c40b54227b6309b35b6e44e397fae8f284a4 (diff) | |
download | IT.starlight-16c1239b36346e84b794fab819d6ad7a9854a244.tar.gz IT.starlight-16c1239b36346e84b794fab819d6ad7a9854a244.tar.bz2 IT.starlight-16c1239b36346e84b794fab819d6ad7a9854a244.zip |
Prevent `<Card>` icon from being shrunk (#3248)
Co-authored-by: delucis <357379+delucis@users.noreply.github.com>
Co-authored-by: ArmandPhilippot <59021693+ArmandPhilippot@users.noreply.github.com>
-rw-r--r-- | .changeset/two-dolphins-drive.md | 5 | ||||
-rw-r--r-- | packages/starlight/user-components/Card.astro | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/.changeset/two-dolphins-drive.md b/.changeset/two-dolphins-drive.md new file mode 100644 index 00000000..6bb1aed4 --- /dev/null +++ b/.changeset/two-dolphins-drive.md @@ -0,0 +1,5 @@ +--- +'@astrojs/starlight': patch +--- + +Prevents [icons in the `<Card>` component](https://starlight.astro.build/components/cards/#add-icons-to-cards) from being shrunk in some narrow viewports. diff --git a/packages/starlight/user-components/Card.astro b/packages/starlight/user-components/Card.astro index 6e523610..224db05b 100644 --- a/packages/starlight/user-components/Card.astro +++ b/packages/starlight/user-components/Card.astro @@ -58,6 +58,7 @@ const { icon, title } = Astro.props; background-color: var(--sl-card-bg); padding: 0.2em; border-radius: 0.25rem; + flex-shrink: 0; } .card .body { margin: 0; |