@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
@@ -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
- <Image
23
- src={image.file}
24
- loading="eager"
25
- width={400}
26
- height={400}
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
  )
@@ -95,7 +95,8 @@
95
95
  }
96
96
 
97
97
  .content :global(table) {
98
- border: 1px solid var(--sl-color-gray-5);
98
+ display: block;
99
+ overflow: auto;
99
100
  border-collapse: collapse;
100
101
  }
101
102
  .content :global(tr:nth-child(2n)) {
@@ -65,7 +65,7 @@ interface Props {
65
65
  :global([dir='rtl']) .caret {
66
66
  transform: rotateZ(180deg);
67
67
  }
68
- [open] .caret {
68
+ [open] > summary .caret {
69
69
  transform: rotateZ(90deg);
70
70
  }
71
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/starlight",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Build beautiful, high-performance documentation websites with Astro",
5
5
  "keywords": [
6
6
  "docs",