Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made my profile tabs scrollable in mobile view #1114

Merged
merged 1 commit into from
Nov 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/components/auth/profile/ProfilePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
VolunteerActivism as DonationIcon,
AccountBox as AccountBoxIcon,
Assignment as CertificateIcon,
AssignmentInd as CampaignIcon,
AccountBalance as CampaignIcon,
} from '@mui/icons-material'
import { useSession } from 'next-auth/react'

Expand Down Expand Up @@ -77,12 +77,14 @@ export default function ProfilePage() {
sx={{
backgroundColor: 'white',
borderRadius: '25px 25px 0px 0px',
padding: '10px 30px',
padding: '10px 10px',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could use only padding: '10px'. It will apply 10px for each side of the box.

boxShadow: 3,
}}>
<h1 className={classes.h1}>{t('profile:header')}</h1>
<h1 className={classes.h1} style={{ marginLeft: '20px' }}>
{t('profile:header')}
</h1>
<Box sx={{ borderBottom: 1, borderColor: 'divider' }}>
<Tabs value={tab.slug}>
<Tabs value={tab.slug} variant="scrollable" scrollButtons allowScrollButtonsMobile>
<Tab
className={matches ? classes.tabMobile : ''}
value={ProfileTabs.donations}
Expand Down