@heyramzi/ui 2.16.0 → 2.16.1
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": "@heyramzi/ui",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.1",
|
|
4
4
|
"description": "Svelte 5 UI for apps: primitives, effects and animations, plus work (tasks and docs), charts, slides, an editor, onboarding and a canvas as subpaths.",
|
|
5
5
|
"homepage": "https://ui.heyramzi.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
<div class="flex flex-col items-start gap-1">
|
|
18
18
|
<p
|
|
19
19
|
class={cn(
|
|
20
|
-
|
|
20
|
+
// A long unbroken word, such as a class name, otherwise widens a narrow rail.
|
|
21
|
+
"max-w-full text-sm leading-relaxed font-normal whitespace-pre-wrap text-pretty wrap-break-word",
|
|
21
22
|
long && !open && "line-clamp-6",
|
|
22
23
|
className,
|
|
23
24
|
)}
|
package/src/thread/thread.svelte
CHANGED
|
@@ -46,6 +46,8 @@
|
|
|
46
46
|
onAnchor?: (comment: ThreadComment) => void;
|
|
47
47
|
/** Whose comments carry the edit and delete buttons. A rich comment can't be edited here. */
|
|
48
48
|
canEdit?: (comment: ThreadComment) => boolean;
|
|
49
|
+
/** False hides the visible title, for a thread already named by its tab. Screen readers still get it. */
|
|
50
|
+
heading?: boolean;
|
|
49
51
|
class?: string;
|
|
50
52
|
}
|
|
51
53
|
|
|
@@ -66,6 +68,7 @@
|
|
|
66
68
|
onResolve,
|
|
67
69
|
onAnchor,
|
|
68
70
|
canEdit = () => false,
|
|
71
|
+
heading = true,
|
|
69
72
|
class: className,
|
|
70
73
|
}: Props = $props();
|
|
71
74
|
|
|
@@ -273,8 +276,8 @@
|
|
|
273
276
|
{/snippet}
|
|
274
277
|
|
|
275
278
|
<section aria-label={labels.title} class={cn("flex flex-col gap-3", className)}>
|
|
276
|
-
<div class="flex h-7 items-center justify-between">
|
|
277
|
-
<h2 class="text-xs font-medium text-muted-foreground">{labels.title}</h2>
|
|
279
|
+
<div class={cn("flex h-7 items-center justify-between", !heading && resolved === 0 && "sr-only")}>
|
|
280
|
+
<h2 class={cn("text-xs font-medium text-muted-foreground", !heading && "sr-only")}>{labels.title}</h2>
|
|
278
281
|
{#if resolved > 0}
|
|
279
282
|
<button
|
|
280
283
|
type="button"
|