fix: stretch editor to full width in revision preview

This commit is contained in:
Baptiste Grob
2020-10-08 15:45:59 +02:00
parent f0ca8ce4f2
commit 8238387761

View File

@@ -16,12 +16,15 @@
a.sk-a.info.close-button( a.sk-a.info.close-button(
ng-click="ctrl.dismiss(); $event.stopPropagation()" ng-click="ctrl.dismiss(); $event.stopPropagation()"
) Close ) Close
.sk-panel-content.selectable .sk-panel-content.selectable(ng-if="!ctrl.state.editor")
.sk-h2 {{ctrl.content.title}} .sk-h2 {{ctrl.content.title}}
p.normal.sk-p( p.normal.sk-p(
style="white-space: pre-wrap; font-size: 16px;" style="white-space: pre-wrap; font-size: 16px;"
ng-if="!ctrl.state.editor"
) {{ctrl.content.text}} ) {{ctrl.content.text}}
.sk-panel-content.sk-h2(
ng-if="ctrl.state.editor"
style="height: auto; flex-grow: 0"
) {{ctrl.content.title}}
component-view.component-view( component-view.component-view(
ng-if="ctrl.state.editor", ng-if="ctrl.state.editor",
template-component="ctrl.state.editor", template-component="ctrl.state.editor",