mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-24 21:12:38 -04:00
4e7fbcfe2e
[web] Adjust column breakpoints in bs5 account settings page GitOrigin-RevId: 90e7fe7561a75439166472627fdb6189ebcdefa1
53 lines
1.3 KiB
TypeScript
53 lines
1.3 KiB
TypeScript
import { useTranslation } from 'react-i18next'
|
|
import EmailCell from './cell'
|
|
import OLCol from '@/features/ui/components/ol/ol-col'
|
|
import OLRow from '@/features/ui/components/ol/ol-row'
|
|
import classnames from 'classnames'
|
|
import { bsVersion } from '@/features/utils/bootstrap-5'
|
|
|
|
function Header() {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<>
|
|
<OLRow>
|
|
<OLCol
|
|
lg={4}
|
|
className={bsVersion({
|
|
bs5: 'd-none d-sm-block',
|
|
bs3: 'hidden-xs',
|
|
})}
|
|
>
|
|
<EmailCell>
|
|
<strong>{t('email')}</strong>
|
|
</EmailCell>
|
|
</OLCol>
|
|
<OLCol
|
|
lg={8}
|
|
className={bsVersion({
|
|
bs5: 'd-none d-sm-block',
|
|
bs3: 'hidden-xs',
|
|
})}
|
|
>
|
|
<EmailCell>
|
|
<strong>{t('institution_and_role')}</strong>
|
|
</EmailCell>
|
|
</OLCol>
|
|
</OLRow>
|
|
<div
|
|
className={classnames(
|
|
bsVersion({ bs5: 'd-none d-sm-block', bs3: 'hidden-xs' }),
|
|
'horizontal-divider'
|
|
)}
|
|
/>
|
|
<div
|
|
className={classnames(
|
|
bsVersion({ bs5: 'd-none d-sm-block', bs3: 'hidden-xs' }),
|
|
'horizontal-divider'
|
|
)}
|
|
/>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default Header
|