Skip to content

Commit

Permalink
refactor(credits): add scrollable content (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
KatvonRivia authored Oct 6, 2020
1 parent b110ba1 commit 870a269
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 18 deletions.
9 changes: 8 additions & 1 deletion src/scripts/components/main/attributions/attributions.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@
flex-direction: column
justify-content: center
width: 50%
color: $textDefault
height: 100%
font-family: NotesEsa

.credits
overflow-y: scroll
margin: emCalc(10px) 0
height: 80%
color: $textDefault
font-family: Arial, Helvetica, sans-serif

h1
display: flex
justify-content: space-between
Expand Down
36 changes: 19 additions & 17 deletions src/scripts/components/main/attributions/attributions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,25 @@ const Attributions: FunctionComponent = () => {

return (
<div className={styles.attributions}>
<ReactMarkdown
source={intl.formatMessage({id: 'attributionDescription'})}
linkTarget="_blank"
allowedTypes={[
'heading',
'text',
'paragraph',
'break',
'strong',
'emphasis',
'image',
'imageReference',
'list',
'listItem',
'link'
]}
/>
<div className={styles.credits}>
<ReactMarkdown
source={intl.formatMessage({id: 'attributionDescription'})}
linkTarget="_blank"
allowedTypes={[
'heading',
'text',
'paragraph',
'break',
'strong',
'emphasis',
'image',
'imageReference',
'list',
'listItem',
'link'
]}
/>
</div>
</div>
);
};
Expand Down

0 comments on commit 870a269

Please sign in to comment.