diff options
author | Dessalines <tyhou13@gmx.com> | 2019-03-30 17:21:50 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-03-30 17:21:50 -0700 |
commit | 6138c6193b9a07fd47d1c1982db613a11fcf5a29 (patch) | |
tree | fd3f5b422861c54c4c3ab53075e48a305d642ab4 /ui | |
parent | 54d660ad883e96d6d64f0e1104a2a1db63dcbd82 (diff) |
Adding img-fluid to markdown images.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/src/components/create-post.tsx | 4 | ||||
-rw-r--r-- | ui/src/main.css | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ui/src/components/create-post.tsx b/ui/src/components/create-post.tsx index 2a39e96c..6715e9d8 100644 --- a/ui/src/components/create-post.tsx +++ b/ui/src/components/create-post.tsx @@ -70,13 +70,13 @@ export class CreatePost extends Component<any, State> { <div class="form-group row"> <label class="col-sm-2 col-form-label">Title</label> <div class="col-sm-10"> - <textarea value={this.state.postForm.name} onInput={linkEvent(this, this.handlePostNameChange)} class="form-control" required rows="3" /> + <textarea value={this.state.postForm.name} onInput={linkEvent(this, this.handlePostNameChange)} class="form-control" required rows={3} /> </div> </div> <div class="form-group row"> <label class="col-sm-2 col-form-label">Body</label> <div class="col-sm-10"> - <textarea value={this.state.postForm.body} onInput={linkEvent(this, this.handlePostBodyChange)} class="form-control" rows="6" /> + <textarea value={this.state.postForm.body} onInput={linkEvent(this, this.handlePostBodyChange)} class="form-control" rows={6} /> </div> </div> <div class="form-group row"> diff --git a/ui/src/main.css b/ui/src/main.css index 3e0dd44a..ab875041 100644 --- a/ui/src/main.css +++ b/ui/src/main.css @@ -27,3 +27,8 @@ body { .md-div p { margin-bottom: 0px; } + +.md-div img { + max-width: 100%; + height: auto; +} |