fixed my propries page and fixed the sidebar again mouaz is the best in the west
All checks were successful
Build frontend / build (push) Successful in 41s

This commit is contained in:
mouazkh
2026-05-25 22:19:03 +03:00
parent 7a3248aec5
commit 9d8ccbac3c
2 changed files with 8 additions and 5 deletions

View File

@ -29,8 +29,10 @@ export default function FloatingSidebar({ isRTL, isAdmin }) {
const positionStyle = { const positionStyle = {
left: '16px', left: '16px',
top: '50%', top: 0,
transform: 'translateY(-50%)', bottom: 0,
display: 'flex',
alignItems: 'center',
}; };
const cardVariants = { const cardVariants = {
@ -55,13 +57,13 @@ export default function FloatingSidebar({ isRTL, isAdmin }) {
return ( return (
<motion.div <motion.div
className="fixed z-50" className="fixed z-50 pointer-events-none"
style={positionStyle} style={positionStyle}
variants={cardVariants} variants={cardVariants}
initial="initial" initial="initial"
animate="animate" animate="animate"
> >
<div className="bg-white/90 backdrop-blur-md rounded-2xl shadow-lg border border-gray-200/60 py-4 px-3 flex flex-col gap-4 transition-all duration-300 hover:shadow-xl hover:bg-white/95"> <div className="bg-white/90 backdrop-blur-md rounded-2xl shadow-lg border border-gray-200/60 py-4 px-3 flex flex-col gap-4 transition-all duration-300 hover:shadow-xl hover:bg-white/95 max-h-[75vh] overflow-y-auto pointer-events-auto">
{isAdmin ? ( {isAdmin ? (
<> <>
<motion.div <motion.div

View File

@ -42,7 +42,8 @@ import {
Wind, Wind,
Pencil, Pencil,
Save, Save,
X X,
Star
} from 'lucide-react'; } from 'lucide-react';
import toast, { Toaster } from 'react-hot-toast'; import toast, { Toaster } from 'react-hot-toast';
import AuthService from '../../services/AuthService'; import AuthService from '../../services/AuthService';