mirror of
https://github.com/ClipFusion-org/clipfusion.git
synced 2025-08-03 14:45:09 +00:00
added will-change
property to some elements (hoping it will do something)
This commit is contained in:
parent
35f4084833
commit
0710981de7
@ -1,3 +1,4 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
import { ComponentProps, useEffect, useRef, useState } from "react";
|
||||
|
||||
const easeFade = (x: number) => (
|
||||
@ -20,5 +21,5 @@ export const ScrollFadingTitle = (props: ComponentProps<"div">) => {
|
||||
return () => window.removeEventListener('scroll', handleScroll);
|
||||
}, [elementRef]);
|
||||
|
||||
return <div style={{opacity: 1}} ref={elementRef} {...props}/>
|
||||
return <div style={{opacity: 1}} ref={elementRef} {...props} className={cn("will-change-auto", props.className)}/>
|
||||
};
|
@ -31,5 +31,5 @@ export const SidebarTriggerAdjustable = (props: ComponentProps<"div">) => {
|
||||
};
|
||||
}, [isMobile]);
|
||||
|
||||
return <div data-sidebar-trigger="true" {...props}></div>;
|
||||
return <div data-sidebar-trigger="true" {...props} className={cn("will-change-auto", props.className)}></div>;
|
||||
}
|
Loading…
Reference in New Issue
Block a user