feat(webui): refine composer action feedback (#6419)
* feat(webui): refine composer action feedback * fix(webui): preserve composer hit targets and ring previews
This commit is contained in:
1 parent
03e9b5430b
commit
6d4add200b
20 files changed
+351
-48
No files matched your search
@@ -18,6 +18,7 @@ import { HoverHint, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tr
|
||||
import { Disclosure } from "@/components/ui/disclosure";
|
||||
import { ExpandableText } from "@/components/ui/expandable-text";
|
||||
import { StreamingLabelSheen } from "@/components/ui/streaming-label-sheen";
|
||||
import { LoadingRing } from "@/components/ui/loading-ring";
|
||||
import { ImageViewport } from "@/components/ui/image-viewport";
|
||||
import { Sample, type ComponentExample } from "./example";
|
||||
import { useGalleryTranslation } from "./i18n";
|
||||
@@ -302,6 +303,13 @@ export const foundationExamples: ComponentExample[] = [
|
||||
{ title: "controls.imageViewport.title", files: ["image-viewport"], Preview: ImageViewports,
|
||||
description: "controls.imageViewport.description", options: "controls.imageViewport.options",
|
||||
code: '<div className="flex h-80 flex-col"><ImageViewport src={url} alt={label} className="flex-1" /></div>' },
|
||||
{ title: "controls.loadingRing.title", files: ["loading-ring"],
|
||||
Preview: () => <div className="flex items-center gap-6 text-muted-foreground">
|
||||
<LoadingRing className="h-3 w-3" />
|
||||
<LoadingRing track={false} strokeWidth="1.5" strokeDasharray="12 50.8" className="h-6 w-6" />
|
||||
</div>,
|
||||
description: "controls.loadingRing.description", options: "controls.loadingRing.options",
|
||||
code: '<LoadingRing className="h-3 w-3 text-muted-foreground" />\n<LoadingRing track={false} strokeWidth="1.5" strokeDasharray="12 50.8" className="h-6 w-6" />' },
|
||||
{ title: "controls.streaming.title", files: ["streaming-label-sheen"], Preview: StreamingLabels,
|
||||
description: "controls.streaming.description", options: "controls.streaming.options",
|
||||
code: '<StreamingLabelSheen active={running}>Working…</StreamingLabelSheen>' },
|
||||
|
||||
Reference in new issue
Block a user