Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: component styling
  • Loading branch information
brettkolodny committed Jun 9, 2025
commit c28c07ce96b7b3d409138a9bfeb29a9239dad9aa
8 changes: 4 additions & 4 deletions src/client/components/MultiSelectCombobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ export const MultiSelectCombobox = forwardRef<
{/* biome-ignore lint/a11y/useKeyWithClickEvents: onKeyDown is not needed here */}
<div
className={cn(
"min-h-10 rounded-md border border-border border-solid pr-3 text-sm focus-within:ring-2 focus-within:ring-content-link",
"h-10 min-h-10 rounded-md border border-border border-solid pr-3 text-sm focus-within:ring-2 focus-within:ring-content-link",
{
"py-1 pl-3": selected.length !== 0,
"cursor-text": !disabled && selected.length !== 0,
Expand All @@ -472,7 +472,7 @@ export const MultiSelectCombobox = forwardRef<
inputRef?.current?.focus();
}}
>
<div className="flex items-center justify-between">
<div className="flex items-center justify-between h-full">
<div className="relative flex flex-wrap gap-1">
{selected.map((option) => {
return (
Expand Down Expand Up @@ -540,7 +540,7 @@ export const MultiSelectCombobox = forwardRef<
"flex-1 border-none bg-transparent outline-none placeholder:text-content-secondary",
{
"w-full": hidePlaceholderWhenSelected,
"px-3 py-2.5": selected.length === 0,
"px-3": selected.length === 0,
"ml-1": selected.length !== 0,
},
inputProps?.className,
Expand All @@ -562,7 +562,7 @@ export const MultiSelectCombobox = forwardRef<
}
}}
className={cn(
"mt-1 cursor-pointer rounded-sm border-none bg-transparent text-content-secondary outline-none hover:text-content-primary focus:ring-2 focus:ring-content-link",
"cursor-pointer rounded-sm border-none bg-transparent text-content-secondary outline-none hover:text-content-primary focus:ring-2 focus:ring-content-link",
(hideClearAllButton ||
disabled ||
selected.length < 1 ||
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/Switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const Switch = forwardRef<
>
<SwitchPrimitives.Thumb
className={cn(
"data-[state=unchecked]:-translate-x-1.5 pointer-events-none block h-4 w-4 rounded-full bg-surface-primary shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-2.5",
"pointer-events-none block h-4 w-4 rounded-full bg-surface-primary shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4",
)}
/>
</SwitchPrimitives.Root>
Expand Down