Skip to content

Commit

Permalink
fix: stretch editor to full width in revision preview
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Oct 8, 2020
1 parent f0ca8ce commit 8238387
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions app/assets/templates/directives/revision-preview-modal.pug
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@
a.sk-a.info.close-button(
ng-click="ctrl.dismiss(); $event.stopPropagation()"
) Close
.sk-panel-content.selectable
.sk-panel-content.selectable(ng-if="!ctrl.state.editor")
.sk-h2 {{ctrl.content.title}}
p.normal.sk-p(
style="white-space: pre-wrap; font-size: 16px;"
ng-if="!ctrl.state.editor"
) {{ctrl.content.text}}
component-view.component-view(
ng-if="ctrl.state.editor",
template-component="ctrl.state.editor",
application='ctrl.application'
)
.sk-panel-content.sk-h2(
ng-if="ctrl.state.editor"
style="height: auto; flex-grow: 0"
) {{ctrl.content.title}}
component-view.component-view(
ng-if="ctrl.state.editor",
template-component="ctrl.state.editor",
application='ctrl.application'
)

0 comments on commit 8238387

Please sign in to comment.