Improve safari image scrolling performance (#12429)

* Don't set z-height on iOS

* More z-index cleanup
This commit is contained in:
Nicolas Mowen authored and GitHub committed 2024-07-13 11:54:24 -05:00
1 parent 843d301950
commit a4eb435f1a
2 files changed
+29 -17

No files matched your search

+3 -1
View File
@@ -1,6 +1,7 @@
import { cn } from "@/lib/utils";
import { LogSeverity } from "@/types/log";
import { ReactNode, useMemo, useRef } from "react";
import { isIOS } from "react-device-detect";
import { CSSTransition } from "react-transition-group";
type ChipProps = {
@@ -34,8 +35,9 @@ export default function Chip({
<div
ref={nodeRef}
className={cn(
"z-10 flex items-center rounded-2xl px-2 py-1.5",
"flex items-center rounded-2xl px-2 py-1.5",
className,
!isIOS && "z-10",
)}
onClick={onClick}
>