Skip to content

Commit

Permalink
refactor: Update SettingModal component to include overflow-auto clas…
Browse files Browse the repository at this point in the history
…s for better scrolling experience
  • Loading branch information
ali-josheghani committed Sep 1, 2024
1 parent 8b85f36 commit e84cf05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/molecules/SettingModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export default function SettingModal() {
}, [onCloseModal]);

return (
<Modal isOpen={isOpenSettingModal} onClose={onCloseModal}>
<Modal isOpen={isOpenSettingModal} onClose={onCloseModal} className="overflow-auto">
<Modal.Box
initial={{ y: "100vw" }}
animate={{ y: 0 }}
className="max-w-[48rem] w-full max-h-[40rem] h-full bg-cream-light rounded-2xl flex flex-col shadow-2xl shadow-black/10"
className="max-w-[48rem] w-full max-h-[40rem] h-full bg-cream-light rounded-2xl flex flex-col shadow-2xl shadow-black/10 max-2xl:!scale-[0.7]"
>
<Modal.Header className="w-full h-auto px-6 py-3">
<div className="w-full h-full flex flex-row-reverse justify-between items-center">
Expand All @@ -63,7 +63,7 @@ export default function SettingModal() {
<div className="w-1/4 h-full shadow-2xl shadow-black/10">
<MenuSetting page={page} setPage={setPage} />
</div>
<div className="w-full h-full">
<div className="w-full h-full !overflow-auto orange-scrollbar">
{page === 1 && <DisplaySetting />}
{page === 2 && <MoreDetails />}
</div>
Expand Down

0 comments on commit e84cf05

Please sign in to comment.