mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 01:28:35 +02:00
Transform CPU
This commit is contained in:
@@ -429,7 +429,7 @@ export const Editor = forwardRef<EditorView | undefined, EditorProps>(function E
|
|||||||
const decoratedActions = useMemo(() => {
|
const decoratedActions = useMemo(() => {
|
||||||
const results = [];
|
const results = [];
|
||||||
const actionClassName = classNames(
|
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) {
|
if (format) {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export function SegmentedControl<T extends string>({ value, onChange, options, n
|
|||||||
role="group"
|
role="group"
|
||||||
dir="ltr"
|
dir="ltr"
|
||||||
space={0.5}
|
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) => {
|
onKeyDown={(e) => {
|
||||||
const selectedIndex = options.findIndex((o) => o.value === selectedValue);
|
const selectedIndex = options.findIndex((o) => o.value === selectedValue);
|
||||||
if (e.key === 'ArrowRight') {
|
if (e.key === 'ArrowRight') {
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ export function Tabs({
|
|||||||
ref={ref}
|
ref={ref}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
className,
|
className,
|
||||||
'transform-gpu',
|
'transform-cpu',
|
||||||
'h-full grid grid-rows-[auto_minmax(0,1fr)] grid-cols-1',
|
'h-full grid grid-rows-[auto_minmax(0,1fr)] grid-cols-1',
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user