handzon-core 0.15.1 → 0.15.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "handzon-core",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "Core framework for Handzon — layouts, components, content + AI libs, and server runtime (handlers, DB, auth, migration runner) consumed by Handzon scaffolds.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -172,6 +172,8 @@ const slug = tutorial.id;
172
172
  letter-spacing: -0.015em;
173
173
  margin: 0.5rem 0 0.25rem;
174
174
  line-height: 1.2;
175
+ min-height: calc(1.15rem * 1.2 * 2);
176
+ text-wrap: balance;
175
177
  }
176
178
  .sb-title a { color: var(--color-fg); text-decoration: none; }
177
179
  .sb-meta {
@@ -1,4 +1,4 @@
1
- import { useEffect, useState } from "react";
1
+ import { useEffect, useLayoutEffect, useState } from "react";
2
2
  import { withBase } from "../../lib/base";
3
3
 
4
4
  /**
@@ -132,7 +132,7 @@ export default function UserMenu() {
132
132
  };
133
133
  }, []);
134
134
 
135
- useEffect(() => {
135
+ useLayoutEffect(() => {
136
136
  // Only retire the static fallback once the island has something to
137
137
  // show in its place (a known user or the wired sign-in form) or the
138
138
  // fetch has resolved with nothing to show (Tier-1). Until then, keep
@@ -6,8 +6,12 @@
6
6
  display: grid;
7
7
  place-items: center;
8
8
  border-radius: 0;
9
+ min-height: var(--mermaid-min-height, 14rem);
9
10
  }
10
11
  .mermaid-wrap :global(svg) { max-width: 100%; height: auto; }
12
+ pre.mermaid {
13
+ min-height: var(--mermaid-min-height, 14rem);
14
+ }
11
15
  .mermaid-error {
12
16
  padding: 0.75rem;
13
17
  background: color-mix(in oklab, var(--color-danger) 14%, var(--color-bg));