@umami/shiso 1.1.4 → 1.1.6

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
@@ -3,6 +3,22 @@
3
3
  All notable changes to `@umami/shiso` are documented here. This project follows
4
4
  [Semantic Versioning](https://semver.org/).
5
5
 
6
+ ## 1.1.6 - 2026-08-19
7
+
8
+ ### Fixed
9
+
10
+ - Apply Alert's optical SVG offset to wrapped callout icons so their visible
11
+ strokes align with the first line of text.
12
+
13
+ ## 1.1.5 - 2026-08-19
14
+
15
+ ### Fixed
16
+
17
+ - Align callout icons with the first line of text using a fixed line-height box
18
+ that remains consistent in published production builds.
19
+ - Keep header actions aligned to the right when the current navigation scope
20
+ does not render top-level tabs.
21
+
6
22
  ## 1.1.3 - 2026-08-18
7
23
 
8
24
  ### Fixed
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Shiso is an open-source documentation framework for Markdown and MDX sites.
4
4
 
5
- Create a project with `pnpm create shiso-app@latest`, then use the framework
5
+ Create a project with `pnpm dlx create-shiso-app@latest`, then use the framework
6
6
  commands from that project:
7
7
 
8
8
  ```bash
@@ -10979,7 +10979,7 @@ const styles = {
10979
10979
  accordionContent: "px-4 pb-4 text-base leading-7",
10980
10980
  expandableTrigger: "items-center px-4 py-3 text-sm font-normal text-foreground hover:no-underline",
10981
10981
  callout: "my-4 flex items-start gap-3 rounded-lg border px-3 py-2.5 text-sm leading-6",
10982
- calloutIcon: "mt-[calc((1.5em-1.25rem)/2)] inline-flex size-5 shrink-0 items-center justify-center [&_svg]:block [&_svg]:size-4",
10982
+ calloutIcon: "flex h-6 w-5 shrink-0 items-center justify-center [&_svg]:block [&_svg]:size-4 [&_svg]:translate-y-0.5",
10983
10983
  calloutBody: "flex min-w-0 flex-1 flex-col gap-[0.35rem] [&>:first-child]:mt-0 [&>:last-child]:mb-0 [&_:where(p,ul,ol)]:my-[0.35rem] [&>:where(p,ul,ol):first-child]:mt-0 [&>:where(p,ul,ol):last-child]:mb-0",
10984
10984
  calloutTitle: "font-semibold leading-6",
10985
10985
  note: "border-border bg-muted/50 text-foreground",
@@ -26238,10 +26238,13 @@ function Header({ site }) {
26238
26238
  children: [/* @__PURE__ */ jsx(VersionSwitcher, {}), /* @__PURE__ */ jsx(LanguageSwitcher, {})]
26239
26239
  })]
26240
26240
  }),
26241
- docs.showTabs ? /* @__PURE__ */ jsx(TopNav, {
26242
- docs,
26243
- label: labels.sections
26244
- }) : null,
26241
+ /* @__PURE__ */ jsx("div", {
26242
+ className: "h-full min-w-0 justify-self-center",
26243
+ children: docs.showTabs ? /* @__PURE__ */ jsx(TopNav, {
26244
+ docs,
26245
+ label: labels.sections
26246
+ }) : null
26247
+ }),
26245
26248
  /* @__PURE__ */ jsxs("div", {
26246
26249
  className: "flex min-w-0 items-center gap-2 justify-self-end",
26247
26250
  children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/shiso",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "Open-source documentation framework for Markdown and MDX sites.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -67,7 +67,9 @@ export function Header({ site }: { site: SiteModel }) {
67
67
  <LanguageSwitcher />
68
68
  </div>
69
69
  </div>
70
- {docs.showTabs ? <TopNav docs={docs} label={labels.sections} /> : null}
70
+ <div className="h-full min-w-0 justify-self-center">
71
+ {docs.showTabs ? <TopNav docs={docs} label={labels.sections} /> : null}
72
+ </div>
71
73
  <div className="flex min-w-0 items-center gap-2 justify-self-end">
72
74
  <Search config={search} labels={labels} />
73
75
  {navbar?.links.map(link => (
@@ -12,7 +12,7 @@ export const styles = {
12
12
 
13
13
  callout: 'my-4 flex items-start gap-3 rounded-lg border px-3 py-2.5 text-sm leading-6',
14
14
  calloutIcon:
15
- 'mt-[calc((1.5em-1.25rem)/2)] inline-flex size-5 shrink-0 items-center justify-center [&_svg]:block [&_svg]:size-4',
15
+ 'flex h-6 w-5 shrink-0 items-center justify-center [&_svg]:block [&_svg]:size-4 [&_svg]:translate-y-0.5',
16
16
  calloutBody:
17
17
  'flex min-w-0 flex-1 flex-col gap-[0.35rem] [&>:first-child]:mt-0 [&>:last-child]:mb-0 [&_:where(p,ul,ol)]:my-[0.35rem] [&>:where(p,ul,ol):first-child]:mt-0 [&>:where(p,ul,ol):last-child]:mb-0',
18
18
  calloutTitle: 'font-semibold leading-6',