remove unessesary animations

This commit is contained in:
2026-08-31 12:36:09 +03:00
parent 582df710b5
commit f68311277b
+3 -7
View File
@@ -159,7 +159,7 @@ export function DX4App({
}, [classId, adminId]); }, [classId, adminId]);
/** /**
* @param {KeyboardEvent} event * @param {KeyboardEvent} event
*/ */
const handleKeyPress = (event) => { const handleKeyPress = (event) => {
switch (event.key) { switch (event.key) {
@@ -217,7 +217,6 @@ export function DX4App({
alt="logo" alt="logo"
width={100} width={100}
draggable={false} draggable={false}
layout="position"
/> />
<motion.div className="flex gap-5 items-center"> <motion.div className="flex gap-5 items-center">
<AnimatePresence mode="popLayout"> <AnimatePresence mode="popLayout">
@@ -234,7 +233,6 @@ export function DX4App({
)} )}
</AnimatePresence> </AnimatePresence>
<motion.span <motion.span
layout="position"
className={ className={
"rounded-full w-fit h-fit" + "rounded-full w-fit h-fit" +
ifstyle(openUserSettings, "border") ifstyle(openUserSettings, "border")
@@ -281,7 +279,6 @@ export function DX4App({
{adminId != "" && managing && ( {adminId != "" && managing && (
<motion.div <motion.div
className="flex w-full justify-end not-md:px-4" className="flex w-full justify-end not-md:px-4"
layout="position"
initial={{ opacity: 0 }} initial={{ opacity: 0 }}
animate={{ opacity: 1 }} animate={{ opacity: 1 }}
> >
@@ -301,10 +298,9 @@ export function DX4App({
</motion.div> </motion.div>
)} )}
<motion.div <motion.div
layout="position"
className="flex flex-col gap-5 w-full not-md:px-4" className="flex flex-col gap-5 w-full not-md:px-4"
> >
<div className="flex gap-2 items-center justify-center"> <motion.div className="flex gap-2 items-center justify-center">
<DatePicker <DatePicker
date={selectedDate} date={selectedDate}
setDate={setSelectedDate} setDate={setSelectedDate}
@@ -336,7 +332,7 @@ export function DX4App({
)} )}
</a> </a>
)} )}
</div> </motion.div>
<motion.div <motion.div
className="relative min-h-[50vh]" className="relative min-h-[50vh]"
drag="x" drag="x"