diff --git a/app/assets/stylesheets/annotations.scss b/app/assets/stylesheets/annotations.scss index beefb195f..f15d99c29 100644 --- a/app/assets/stylesheets/annotations.scss +++ b/app/assets/stylesheets/annotations.scss @@ -16,25 +16,72 @@ /* annotation modal */ #annotation-modal { - .modal-content { - width: 100%; + .modal-body { + display: flex; + } + + .modal-footer { + margin-top: 40px; + padding-bottom: 0; + padding-right: 0; + } + + .annotation-dialog-normal { + max-width: 560px; + } + + .annotation-dialog-expanded { + max-width: 730px; } - #annotation-modal-content { + + .annotation-content-normal { width: 100%; } + + .annotation-content-expanded { + width: 70%; + } + + #annotation-preview-section { + width: 30%; + } + #annotation-modal-preview { - height: 543px; - width: 35%; word-wrap: break-word; - overflow-y: scroll; + overflow-y: auto; } + #annotation_comment { - height: 150px; - resize: none; + height: 200px; + max-height: 300px; } + #annotation_category_text { width: 200px; } + + // adapted from https://stackoverflow.com/a/49065029/ + section { + display: flex; + flex-direction: column; + // border: thin solid rgb(176, 176, 176); + } + + // this column adapts to the other column with respect to its height + .column-adaptable { + flex-basis: 0; + flex-grow: 1; + } + + .annotation-preview { + border-right: thin solid rgb(176, 176, 176); + margin-right: 8px; + padding-right: 8px; + } + + .annotation-content-spacing { + padding-left: 8px; + } } #emergency-link { diff --git a/app/views/annotations/_annotation_modal.html.erb b/app/views/annotations/_annotation_modal.html.erb index b44abe9c3..c119e519f 100644 --- a/app/views/annotations/_annotation_modal.html.erb +++ b/app/views/annotations/_annotation_modal.html.erb @@ -1,10 +1,11 @@