Skip to content

Commit

Permalink
fix(ui): width of Markdown box when creating an entry should be 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
john-ghatas authored Jun 9, 2020
1 parent 003c2f6 commit 2271219
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/public/views/Logs/Create/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { h } from '/js/src/index.js';
const mdBox = (model, text) => h('', {
onremove: () => model.logs.flushModel(),
}, [
h('textarea#text.w-75.form-control', {
h('textarea#text.form-control', {
placeholder: 'Your message...',
disabled: true,
onchange: (e) => model.logs.setText(e.target.value),
Expand Down Expand Up @@ -63,7 +63,7 @@ const createScreen = (model) => {
}, title),
]),
h('h3.black.line-break: auto', 'Text'),
h('.shadow-level2', mdBox(model, text)),
h('.shadow-level2.w-100', mdBox(model, text)),
h('button.mv2.shadow-level1.btn.btn-success.m#send', {
onclick: () => model.logs.createLog(),
disabled,
Expand Down
2 changes: 1 addition & 1 deletion lib/public/views/Logs/Logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export default class Overview extends Observable {
const { isReadOnly, textValue } = readOnlyProperties;
const shouldRenderReadOnly = textValue && isReadOnly;
const mdBoxStyling = shouldRenderReadOnly ?
{ width: 'auto', height: 'auto' } : { width: '80rem', height: '40rem' };
{ width: 'auto', height: 'auto' } : { width: 'auto', height: '40rem' };

!this.isPreviewActive && setTimeout(() => {
this.editor = setMarkDownBox(textAreaId, this.model, changeHandler, isReadOnly, mdBoxStyling);
Expand Down

0 comments on commit 2271219

Please sign in to comment.