fix(ui) : simplify admin controls and artifact selection

This commit is contained in:
2026-10-14 22:39:53 +07:00 Unverified
parent d229cb3942
commit 024553b516
21 changed files with 148 additions and 73 deletions
+2
View File
@@ -15,6 +15,8 @@ const buttonVariants = cva(
"border-control-border bg-control text-secondary-foreground hover:border-control-border-hover hover:bg-control-hover aria-expanded:border-primary aria-expanded:bg-primary/15 aria-expanded:text-primary",
ghost:
"border-control-border bg-control text-foreground hover:border-control-border-hover hover:bg-control-hover aria-expanded:border-primary aria-expanded:bg-primary/15 aria-expanded:text-primary aria-[current=page]:border-primary aria-[current=page]:bg-primary/15 aria-[current=page]:text-primary",
plain:
"border-transparent bg-transparent hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground",
destructive:
"border-destructive bg-destructive/20 text-destructive hover:bg-destructive/30 focus-visible:border-destructive focus-visible:ring-destructive/40",
link: "border-transparent text-primary underline underline-offset-4 hover:decoration-2",
+2 -2
View File
@@ -62,7 +62,7 @@ function ComboboxClear({ className, ...props }: ComboboxPrimitive.Clear.Props) {
return (
<ComboboxPrimitive.Clear
data-slot="combobox-clear"
render={<InputGroupButton variant="ghost" size="icon-xs" />}
render={<InputGroupButton variant="plain" size="icon-xs" />}
className={cn(className)}
{...props}
>
@@ -275,7 +275,7 @@ function ComboboxChip({
{children}
{showRemove && (
<ComboboxPrimitive.ChipRemove
render={<Button variant="ghost" size="icon-xs" />}
render={<Button variant="plain" size="icon-xs" />}
className="-ml-1 opacity-50 hover:opacity-100"
data-slot="combobox-chip-remove"
>
+1 -1
View File
@@ -64,7 +64,7 @@ function DialogContent({
data-slot="dialog-close"
render={
<Button
variant="ghost"
variant="plain"
className="absolute top-2 right-2"
size="icon-sm"
/>
+1 -1
View File
@@ -64,7 +64,7 @@ function SheetContent({
data-slot="sheet-close"
render={
<Button
variant="ghost"
variant="plain"
className="absolute top-3 right-3"
size="icon-sm"
/>