Skip to content

Commit

Permalink
Add style for pre tag in comments
Browse files Browse the repository at this point in the history
The content with `pre` tag was overflowing the comment box.
  • Loading branch information
David Kang committed Sep 24, 2018
1 parent fcc221a commit 3a04188
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/api/app/assets/stylesheets/webui2/comments.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.comments {
.media .media-body {
pre {
@extend .p-2;
@extend .bg-light;
white-space: pre-wrap;
}
}
}
1 change: 1 addition & 0 deletions src/api/app/assets/stylesheets/webui2/webui2.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@
@import 'autocomplete';
@import 'package-attributes';
@import 'modals';
@import 'comments';

0 comments on commit 3a04188

Please sign in to comment.