Skip to content

Commit

Permalink
fix(styling): update styling for messages
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Jul 1, 2022
1 parent 92be004 commit 4eb96a2
Show file tree
Hide file tree
Showing 3 changed files with 1,637 additions and 1,151 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
},
"dependencies": {
"@graasp/translations": "github:graasp/graasp-translations.git",
"@graasp/ui": "github:graasp/graasp-ui",
"@graasp/ui": "github:graasp/graasp-ui#134/optionalDep",
"clsx": "1.1.1",
"i18next": "21.6.11",
"immutable": "4.0.0",
Expand All @@ -59,6 +59,7 @@
"react-csv": "2.2.2",
"react-i18next": "11.15.3",
"react-markdown": "8.0.3",
"react-router-dom": "6.3.0",
"remark-breaks": "3.0.2",
"remark-gfm": "3.0.1"
},
Expand Down
5 changes: 4 additions & 1 deletion src/components/MessageBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const useStyles = makeStyles((theme) => ({
lineHeight: '1.5',
fontSize: '1rem',
},
'& ul': {
'& ul, ol': {
// define offset for list
paddingInlineStart: theme.spacing(2),
},
Expand Down Expand Up @@ -46,6 +46,9 @@ const useStyles = makeStyles((theme) => ({
'& tr:nth-child(even)': {
backgroundColor: 'lightgray',
},
'& img': {
maxWidth: '100%',
},
},
}));

Expand Down
Loading

0 comments on commit 4eb96a2

Please sign in to comment.