Skip to content

Commit

Permalink
fix(frontend): map ui alignment on various devices (#1772)
Browse files Browse the repository at this point in the history
* fix(taskSelectionPopup): fix popup alignment in medium screen

* fix(offlineReadyPrompt): shift of projectDetails UI upwards showing white gap below
  • Loading branch information
NSUWAL123 authored Sep 10, 2024
1 parent ad9abad commit 9ff2392
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions src/frontend/src/components/OfflineReadyPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,21 @@ function OfflineReadyPrompt() {
}, [offlineReady]);

return (
<div className="OfflineReadyPrompt-container">
<>
{offlineReady && (
<div className="OfflineReadyPrompt-toast">
<div className="OfflineReadyPrompt-message">
<span>App ready to work offline</span>
<div className="OfflineReadyPrompt-container">
<div className="OfflineReadyPrompt-toast">
<div className="OfflineReadyPrompt-message">
<span>App ready to work offline</span>
</div>
<button className="OfflineReadyPrompt-toast-button" onClick={() => close()}>
Close
</button>
</div>
<button className="OfflineReadyPrompt-toast-button" onClick={() => close()}>
Close
</button>
<div className="OfflineReadyPrompt-date">{buildDate}</div>
</div>
)}
<div className="OfflineReadyPrompt-date">{buildDate}</div>
</div>
</>
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const TaskSelectionPopup = ({ taskId, body, feature }: TaskSelectionPopupPropTyp
<div
className={`fmtm-duration-1000 fmtm-z-[10002] fmtm-h-fit ${
taskModalStatus
? 'fmtm-bottom-[4.4rem] md:fmtm-top-[50%] md:-fmtm-translate-y-[35%] fmtm-right-0 fmtm-w-[100vw] md:fmtm-w-[50vw] md:fmtm-max-w-[25rem]'
? 'fmtm-bottom-[4.4rem] sm:fmtm-bottom-0 lg:fmtm-top-[50%] md:-fmtm-translate-y-[35%] fmtm-right-0 fmtm-w-[100vw] md:fmtm-w-[50vw] md:fmtm-max-w-[25rem]'
: 'fmtm-top-[calc(100vh)] md:fmtm-top-[calc(40vh)] md:fmtm-left-[calc(100vw)] fmtm-w-[100vw]'
} fmtm-fixed
fmtm-rounded-t-3xl fmtm-border-opacity-50`}
Expand Down

0 comments on commit 9ff2392

Please sign in to comment.