feat(webui): unify icons and refine interaction feedback (#6074)
* feat(webui): unify product icons and refine interaction feedback * test(webui): align layout and tooltip expectations with icon refresh * test(webui): verify temporary chat uses shared icon controls * fix(webui): toggle workspace access directly and restore send arrow * fix(webui): keep the send control circular * fix(webui): clear workspace toggle background on pointer leave * test(webui): isolate GitHub navigation in star prompt tests * test(webui): prevent external default navigation during star link clicks
This commit is contained in:
1 parent
9dc0abae4f
commit
63bdd40280
59 files changed
+615
-505
No files matched your search
@@ -7,17 +7,7 @@ import {
|
||||
useState,
|
||||
type ReactNode,
|
||||
} from "react";
|
||||
import {
|
||||
Activity,
|
||||
Check,
|
||||
ChevronRight,
|
||||
CircleAlert,
|
||||
Clock3,
|
||||
Copy,
|
||||
Link2,
|
||||
Quote,
|
||||
Wrench,
|
||||
} from "lucide-react";
|
||||
import { Activity, Check, ChevronRight, CircleAlert, Clock3, Copy, Link2, Quote, Wrench } from "lucide-react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { DisclosureContent } from "@/components/ui/disclosure";
|
||||
|
||||
@@ -139,7 +129,7 @@ export function MessageCopyButton({ message, className }: { message: UIMessage;
|
||||
onClick={onCopy} aria-label={label}
|
||||
className={cn(
|
||||
"inline-flex h-[var(--message-block-control-size)] w-[var(--message-block-action-width)] items-center justify-center rounded-control",
|
||||
"text-muted-foreground transition-[color,background-color,scale] hover:bg-muted/70 hover:text-foreground active:scale-[0.96]",
|
||||
"text-muted-foreground transition-[color] hover:text-foreground",
|
||||
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transform-none",
|
||||
className,
|
||||
)}>
|
||||
@@ -219,8 +209,8 @@ export function MessageBlockMenuActions({
|
||||
aria-label={t("message.forkFromHere")}
|
||||
className={cn(
|
||||
"inline-flex h-[var(--message-block-control-size)] w-[var(--message-block-action-width)] items-center justify-center rounded-control",
|
||||
"text-muted-foreground transition-[color,background-color,scale]",
|
||||
"hover:bg-muted/70 hover:text-foreground active:scale-[0.96]",
|
||||
"text-muted-foreground transition-colors",
|
||||
"hover:text-foreground",
|
||||
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
||||
"motion-reduce:transform-none",
|
||||
sheet && "w-full justify-start gap-2 px-2 text-sm",
|
||||
@@ -256,8 +246,7 @@ export function MessageBlockMenuActions({
|
||||
data-message-block-activity-icon
|
||||
className={cn(
|
||||
"inline-flex h-[var(--message-block-control-size)] w-[var(--message-block-action-width)] shrink-0 items-center justify-center rounded-control",
|
||||
"transition-[background-color,box-shadow,scale]",
|
||||
"group-hover:bg-muted/70 group-active:scale-[0.96]",
|
||||
"transition-colors",
|
||||
"group-focus-visible:ring-2 group-focus-visible:ring-ring",
|
||||
"motion-reduce:transform-none",
|
||||
sheet && "w-3.5",
|
||||
|
||||
Reference in new issue
Block a user