style: refine shared UI primitives and management flows
This commit is contained in:
@@ -32,7 +32,7 @@ interface MultiSelectPopoverProps {
|
||||
|
||||
function checkboxClass(checked: boolean) {
|
||||
return cn(
|
||||
'flex size-4 shrink-0 items-center justify-center rounded border',
|
||||
'flex size-4 shrink-0 items-center justify-center rounded-lg border',
|
||||
checked && 'border-primary bg-primary text-primary-foreground',
|
||||
);
|
||||
}
|
||||
@@ -106,7 +106,7 @@ export function MultiSelectPopover({
|
||||
type="button"
|
||||
onClick={toggleAll}
|
||||
aria-label={`Toggle all ${label}`}
|
||||
className="shrink-0 cursor-pointer rounded-md p-0.5 hover:bg-muted"
|
||||
className="shrink-0 cursor-pointer rounded-lg p-0.5 hover:bg-muted"
|
||||
>
|
||||
<span className={checkboxClass(areAllSelected)}>
|
||||
{areAllSelected ? <Check className="size-3" /> : null}
|
||||
@@ -128,7 +128,7 @@ export function MultiSelectPopover({
|
||||
return (
|
||||
<div
|
||||
key={option.value}
|
||||
className="flex items-center gap-2 rounded-md px-2 py-1.5 hover:bg-muted"
|
||||
className="flex items-center gap-2 rounded-lg px-2 py-1.5 hover:bg-muted"
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user