Skip to content

Commit

Permalink
fix (projectDetails): margins/paddings updated for mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
NSUWAL123 committed Oct 13, 2023
1 parent 8c252c9 commit 9577d4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/frontend/src/components/ActivitiesPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const ActivitiesPanel = ({ defaultTheme, state, params, map, view, mapDivPostion
}, [taskDisplay, state, searchText]);

return (
<CoreModules.Stack p={2.5} width={'100%'} spacing={2}>
<CoreModules.Stack width={'100%'} spacing={2} className="sm:fmtm-p-4">
<CoreModules.Typography
variant="h1"
fontSize={defaultTheme.typography.htmlFontSize}
Expand Down
6 changes: 3 additions & 3 deletions src/frontend/src/components/ProjectDetails/ProjectOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const ProjectOptions = ({ setToggleGenerateModal }) => {
<div className="fmtm-mt-4">
<div>
<div
className={`fmtm-flex fmtm-gap-5 fmtm-py-4 sm:fmtm-hidden fmtm-justify-between fmtm-items-center fmtm-mx-7 fmtm-mb-2 ${
className={`fmtm-flex fmtm-gap-5 fmtm-py-4 sm:fmtm-hidden fmtm-justify-between fmtm-items-center fmtm-mx-4 sm:fmtm-mx-7 fmtm-mb-2 ${
toggleAction ? 'fmtm-border-b-[#929DB3] fmtm-border-b-[1px]' : ''
}`}
>
Expand All @@ -62,7 +62,7 @@ const ProjectOptions = ({ setToggleGenerateModal }) => {
toggleAction ? '' : 'fmtm-hidden sm:fmtm-flex'
}`}
>
<div className="fmtm-w-full fmtm-flex fmtm-flex-col fmtm-items-start sm:fmtm-flex-row sm:fmtm-justify-center lg:fmtm-justify-start sm:fmtm-items-center fmtm-gap-6 fmtm-ml-4">
<div className="fmtm-w-full fmtm-flex fmtm-flex-col fmtm-items-start sm:fmtm-flex-row sm:fmtm-justify-center lg:fmtm-justify-start sm:fmtm-items-center fmtm-gap-6 fmtm-ml-2 sm:fmtm-ml-4">
<CoreModules.LoadingButton
onClick={() => handleDownload('form')}
sx={{ width: 'unset' }}
Expand Down Expand Up @@ -98,7 +98,7 @@ const ProjectOptions = ({ setToggleGenerateModal }) => {
Data Extract
</CoreModules.LoadingButton>
</div>
<div className="fmtm-flex fmtm-flex-col sm:fmtm-flex-row sm:fmtm-justify-center lg:fmtm-justify-end fmtm-w-full fmtm-ml-4 fmtm-gap-6">
<div className="fmtm-flex fmtm-flex-col sm:fmtm-flex-row sm:fmtm-justify-center lg:fmtm-justify-end fmtm-w-full fmtm-ml-2 sm:fmtm-ml-4 fmtm-gap-6">
<CoreModules.Link
to={`/projectInfo/${encodedId}`}
style={{
Expand Down

0 comments on commit 9577d4c

Please sign in to comment.