mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
feat(client): make portfolio section in profile support RTL layout (#49148)
* feat(client): make portfolio section in profile support RTL layout
* Revert "feat(client): make portfolio section in profile support RTL layout"
This reverts commit b4cf5f1ab4.
* make media component responsive
* fix the selector
* hook the media left through an id
* hook the media left through an id
This commit is contained in:
parent
3cd60a692d
commit
45dc6aee9e
@ -6,6 +6,14 @@ Increase the spacing in paragraphs
|
||||
line-height: 2rem;
|
||||
}
|
||||
|
||||
/*
|
||||
Profile section
|
||||
*/
|
||||
|
||||
[dir='rtl'] #profile-portfolio-image {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
/*
|
||||
Intro project buttons and headings
|
||||
*/
|
||||
|
||||
@ -21,7 +21,7 @@ function Portfolio({ portfolio = [] }: PortfolioProps): JSX.Element | null {
|
||||
<h2 className='text-center'>{t('profile.portfolio')}</h2>
|
||||
{portfolio.map(({ title, url, image, description, id }) => (
|
||||
<Media key={id}>
|
||||
<Media.Left align='middle'>
|
||||
<Media.Left id='profile-portfolio-image' align='middle'>
|
||||
{image && (
|
||||
<img
|
||||
alt={t('profile.screen-shot', { title: title })}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user