Skip to content

Commit

Permalink
Moving remaining non-dynamic inline styles to styles.css.
Browse files Browse the repository at this point in the history
  • Loading branch information
erinesullivan committed Jul 23, 2024
1 parent 3ce0d4f commit 8c12b33
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/reusable/components/Metadata/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const Description = ({ data }) => {
<ol className='list__unstyled'>
{data.map((datum, index) => {
return (
<li key={index} style={{ display: 'inline-block' }}>
<li key={index}>
{index > 0 && <Icon icon='navigate_next' className='text-grey__light' />}
<Description data={datum} />
</li>
Expand Down Expand Up @@ -98,7 +98,6 @@ const Description = ({ data }) => {
src={image}
alt=''
className='padding-top__xs'
style={{ maxWidth: '16rem' }}
/>
)}
</DescriptionItem>
Expand Down
8 changes: 8 additions & 0 deletions src/modules/reusable/components/Metadata/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@
max-width: 10rem;
}
}

.metadata-details img {
max-width: 16rem;
}

.metadata-details ol.list__unstyled > li {
display: inline-block;
}

0 comments on commit 8c12b33

Please sign in to comment.