fix(ui): Prevent unintended text selection and improve component behavior (#5077)

This commit is contained in:
Alireza authored and GitHub committed 2025-05-28 22:41:15 -04:00
1 parent 773d6edaf7
commit c6327acdc1
5 files changed
+73 -32

No files matched your search

@@ -70,8 +70,14 @@ const CinePlayer: React.FC<CinePlayerProps> = ({
);
return (
<div className={`absolute top-10 left-1/2 z-50 -translate-x-1/2 ${className}`}>
<div className={'bg-muted inline-flex select-none items-center gap-2 rounded-md px-2 py-2'}>
<div
className={`pointer-events-none absolute top-10 left-1/2 z-50 -translate-x-1/2 ${className}`}
>
<div
className={
'bg-muted pointer-events-auto inline-flex select-none items-center gap-2 rounded-md px-2 py-2'
}
>
<Button
variant="ghost"
size="icon"
@@ -167,7 +173,7 @@ const CinePlayer: React.FC<CinePlayerProps> = ({
step={1}
value={dynamicInfo.dimensionGroupNumber}
onChange={val => handleDimensionGroupNumberChange(val as number)}
className="mt-3 w-full"
className="pointer-events-auto mt-3 w-full"
>
<Numeric.SingleRange showNumberInput={false} />
</Numeric.Container>