mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #3847 from overleaf/ae-user-select-out-of-sync
Display the Out Of Sync modal file contents in a readonly textarea GitOrigin-RevId: b91ff3ad32c3ed07987858e83571887ae356f4f3
This commit is contained in:
committed by
Copybot
parent
9e2db00d53
commit
12f3e8d6bb
@@ -151,7 +151,7 @@ block content
|
|||||||
)
|
)
|
||||||
| {{showFileContents ? "Hide" : "Show"}} Local File Contents
|
| {{showFileContents ? "Hide" : "Show"}} Local File Contents
|
||||||
.text-preview(ng-show="showFileContents")
|
.text-preview(ng-show="showFileContents")
|
||||||
.scroll-container
|
textarea.scroll-container(readonly="readonly" rows="{{editorContentRows}}")
|
||||||
| {{editorContent}}
|
| {{editorContent}}
|
||||||
|
|
||||||
.modal-footer
|
.modal-footer
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ App.controller('OutOfSyncModalController', function(
|
|||||||
$scope.title = title
|
$scope.title = title
|
||||||
$scope.message = message
|
$scope.message = message
|
||||||
$scope.editorContent = editorContent
|
$scope.editorContent = editorContent
|
||||||
|
$scope.editorContentRows = editorContent.split('\n').length
|
||||||
|
|
||||||
$scope.done = () => {
|
$scope.done = () => {
|
||||||
// Reload the page to avoid staying in an inconsistent state.
|
// Reload the page to avoid staying in an inconsistent state.
|
||||||
|
|||||||
@@ -494,6 +494,7 @@ CodeMirror
|
|||||||
margin-top: @line-height-computed / 2;
|
margin-top: @line-height-computed / 2;
|
||||||
.scroll-container {
|
.scroll-container {
|
||||||
max-height: 360px;
|
max-height: 360px;
|
||||||
|
width: 100%;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
line-height: 1.1em;
|
line-height: 1.1em;
|
||||||
|
|||||||
Reference in New Issue
Block a user