From f640a7d9c0627e1ecdace27b9b7b0142471f7ba7 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 21 Jan 2025 12:05:44 -0800 Subject: [PATCH] Transform CPU --- src-web/components/core/Editor/Editor.tsx | 2 +- src-web/components/core/SegmentedControl.tsx | 2 +- src-web/components/core/Tabs/Tabs.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src-web/components/core/Editor/Editor.tsx b/src-web/components/core/Editor/Editor.tsx index 24d72e9f..9297596b 100644 --- a/src-web/components/core/Editor/Editor.tsx +++ b/src-web/components/core/Editor/Editor.tsx @@ -429,7 +429,7 @@ export const Editor = forwardRef(function E const decoratedActions = useMemo(() => { const results = []; const actionClassName = classNames( - 'bg-surface transition-opacity transform-gpu opacity-0 group-hover:opacity-100 hover:!opacity-100 shadow', + 'bg-surface transition-opacity transform-cpu opacity-0 group-hover:opacity-100 hover:!opacity-100 shadow', ); if (format) { diff --git a/src-web/components/core/SegmentedControl.tsx b/src-web/components/core/SegmentedControl.tsx index 3165d956..3db7e59d 100644 --- a/src-web/components/core/SegmentedControl.tsx +++ b/src-web/components/core/SegmentedControl.tsx @@ -22,7 +22,7 @@ export function SegmentedControl({ value, onChange, options, n role="group" dir="ltr" space={0.5} - className="bg-surface-highlight rounded-md mb-auto opacity-0 group-focus-within/markdown:opacity-100 group-hover/markdown:opacity-100 transition-opacity transform-gpu" + className="bg-surface-highlight rounded-md mb-auto opacity-0 group-focus-within/markdown:opacity-100 group-hover/markdown:opacity-100 transition-opacity transform-cpu" onKeyDown={(e) => { const selectedIndex = options.findIndex((o) => o.value === selectedValue); if (e.key === 'ArrowRight') { diff --git a/src-web/components/core/Tabs/Tabs.tsx b/src-web/components/core/Tabs/Tabs.tsx index f39360e3..77d08ee8 100644 --- a/src-web/components/core/Tabs/Tabs.tsx +++ b/src-web/components/core/Tabs/Tabs.tsx @@ -67,7 +67,7 @@ export function Tabs({ ref={ref} className={classNames( className, - 'transform-gpu', + 'transform-cpu', 'h-full grid grid-rows-[auto_minmax(0,1fr)] grid-cols-1', )} >