Skip to content

Commit

Permalink
fix(about): add scroll, adjust width on mobile (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
KatvonRivia authored Oct 21, 2020
1 parent 794c133 commit 0915c56
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 17 deletions.
4 changes: 4 additions & 0 deletions src/scripts/components/layers/layer-info/layer-info.styl
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@
ul
padding: 0
list-style: none

@media screen and (max-width: 480px)
.layerInfo
width: 80%
12 changes: 12 additions & 0 deletions src/scripts/components/main/about-project/about-project.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@
flex-direction: column
justify-content: center
width: 50%
height: 100%
color: $textDefault
font-family: NotesEsa

.content
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 All @@ -16,3 +24,7 @@
a
color: $textColor
text-decoration: none

@media screen and (max-width: 480px)
.aboutProject
width: 80%
36 changes: 19 additions & 17 deletions src/scripts/components/main/about-project/about-project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,25 @@ const AboutProject: FunctionComponent = () => {

return (
<div className={styles.aboutProject}>
<ReactMarkdown
source={intl.formatMessage({id: 'projectDescription'})}
linkTarget="_blank"
allowedTypes={[
'heading',
'text',
'paragraph',
'break',
'strong',
'emphasis',
'image',
'imageReference',
'list',
'listItem',
'link'
]}
/>
<div className={styles.content}>
<ReactMarkdown
source={intl.formatMessage({id: 'projectDescription'})}
linkTarget="_blank"
allowedTypes={[
'heading',
'text',
'paragraph',
'break',
'strong',
'emphasis',
'image',
'imageReference',
'list',
'listItem',
'link'
]}
/>
</div>
</div>
);
};
Expand Down
4 changes: 4 additions & 0 deletions src/scripts/components/main/attributions/attributions.styl
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@
a
color: $textColor
text-decoration: none

@media screen and (max-width: 480px)
.attributions
width: 80%

0 comments on commit 0915c56

Please sign in to comment.