mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-11-19 07:33:49 +08:00
fix(ui): harden pagination and selection controls
This commit is contained in:
1 parent
32d872ed9c
commit
ef57f3f196
3 files changed
+30
-36
No files matched your search
@@ -4,7 +4,7 @@ import * as React from "react"
|
||||
import { Checkbox as CheckboxPrimitive } from "radix-ui"
|
||||
|
||||
import { cn } from "@/lib/utils"
|
||||
import { CheckIcon } from "lucide-react"
|
||||
import { CheckIcon, MinusIcon } from "lucide-react"
|
||||
|
||||
function Checkbox({
|
||||
className,
|
||||
@@ -21,10 +21,10 @@ function Checkbox({
|
||||
>
|
||||
<CheckboxPrimitive.Indicator
|
||||
data-slot="checkbox-indicator"
|
||||
className="grid place-content-center text-current transition-none [&>svg]:size-3.5"
|
||||
className="group/checkbox-indicator grid place-content-center text-current transition-none [&>svg]:size-3.5"
|
||||
>
|
||||
<CheckIcon
|
||||
/>
|
||||
<CheckIcon className="group-data-[state=indeterminate]/checkbox-indicator:hidden" />
|
||||
<MinusIcon className="hidden group-data-[state=indeterminate]/checkbox-indicator:block" />
|
||||
</CheckboxPrimitive.Indicator>
|
||||
</CheckboxPrimitive.Root>
|
||||
)
|
||||
|
||||
@@ -93,14 +93,17 @@ function ComboboxContent({
|
||||
align = "start",
|
||||
alignOffset = 0,
|
||||
anchor,
|
||||
portalContainer,
|
||||
...props
|
||||
}: ComboboxPrimitive.Popup.Props &
|
||||
Pick<
|
||||
ComboboxPrimitive.Positioner.Props,
|
||||
"side" | "align" | "sideOffset" | "alignOffset" | "anchor"
|
||||
>) {
|
||||
> & {
|
||||
portalContainer?: ComboboxPrimitive.Portal.Props["container"]
|
||||
}) {
|
||||
return (
|
||||
<ComboboxPrimitive.Portal>
|
||||
<ComboboxPrimitive.Portal container={portalContainer}>
|
||||
<ComboboxPrimitive.Positioner
|
||||
side={side}
|
||||
sideOffset={sideOffset}
|
||||
|
||||
Reference in new issue
Block a user