Only show Drawer shadow when open

This commit is contained in:
Andy Chan (12beesinatrenchcoat) 2024-03-31 00:35:15 -04:00
parent a59f9d784a
commit af8055002c

View File

@ -26,8 +26,8 @@ const Drawer: FunctionComponent<DrawerProps> = ({ title, children, onSave, edita
setEditContent(event.target.value);
};
const drawerClassName = `fixed top-0 right-0 w-1/2 h-full bg-white shadow-xl transform ease-in-out duration-300 ${
isOpen ? "translate-x-0" : "translate-x-full"
const drawerClassName = `fixed top-0 right-0 w-1/2 h-full bg-white transform ease-in-out duration-300 ${
isOpen ? "translate-x-0 shadow-xl" : "translate-x-full"
}`;
const saveChanges = () => {