@astrojs/starlight 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @astrojs/starlight
|
|
2
2
|
|
|
3
|
+
## 0.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#183](https://github.com/withastro/starlight/pull/183) [`89e0a04`](https://github.com/withastro/starlight/commit/89e0a04c26639246f550957acda2285e50417729) Thanks [@delucis](https://github.com/delucis)! - Fix disclosure caret rotation in sidebar sub-groups
|
|
8
|
+
|
|
9
|
+
- [#177](https://github.com/withastro/starlight/pull/177) [`bdafdb0`](https://github.com/withastro/starlight/commit/bdafdb050d9d4e2501485dff37b71a3175a3b0c8) Thanks [@rviscomi](https://github.com/rviscomi)! - Fix Markdown table overflow
|
|
10
|
+
|
|
11
|
+
- [#185](https://github.com/withastro/starlight/pull/185) [`4844915`](https://github.com/withastro/starlight/commit/4844915c25c9cdfb852e41584d93abfd85b82d08) Thanks [@delucis](https://github.com/delucis)! - Support setting an SVG as the hero image file
|
|
12
|
+
|
|
3
13
|
## 0.1.2
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/components/Hero.astro
CHANGED
|
@@ -14,18 +14,24 @@ const {
|
|
|
14
14
|
image,
|
|
15
15
|
actions,
|
|
16
16
|
} = Astro.props.hero;
|
|
17
|
+
|
|
18
|
+
const imageAttrs = {
|
|
19
|
+
loading: 'eager' as const,
|
|
20
|
+
decoding: 'async' as const,
|
|
21
|
+
width: 400,
|
|
22
|
+
height: 400,
|
|
23
|
+
alt: image?.alt,
|
|
24
|
+
};
|
|
17
25
|
---
|
|
18
26
|
|
|
19
27
|
<div class="hero">
|
|
20
28
|
{
|
|
21
29
|
image?.file ? (
|
|
22
|
-
|
|
23
|
-
src={image.file}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
alt={image.alt}
|
|
28
|
-
/>
|
|
30
|
+
image.file.format === 'svg' ? (
|
|
31
|
+
<img src={image.file.src} {...imageAttrs} />
|
|
32
|
+
) : (
|
|
33
|
+
<Image src={image.file} {...imageAttrs} />
|
|
34
|
+
)
|
|
29
35
|
) : (
|
|
30
36
|
image?.html && <div class="hero-html flex" set:html={image.html} />
|
|
31
37
|
)
|