mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Allow history view to be closed
This commit is contained in:
parent
e0cd9ba163
commit
548d7d98a4
3 changed files with 35 additions and 8 deletions
|
@ -426,6 +426,10 @@
|
||||||
script(type='text/template')#trackChangesPanelTemplate
|
script(type='text/template')#trackChangesPanelTemplate
|
||||||
#trackChangesPanel
|
#trackChangesPanel
|
||||||
.track-changes-side-bar
|
.track-changes-side-bar
|
||||||
|
.track-changes-header
|
||||||
|
h3 Recent changes
|
||||||
|
a(href="#").track-changes-close
|
||||||
|
i.icon-remove
|
||||||
.change-list-area
|
.change-list-area
|
||||||
.track-changes-diff
|
.track-changes-diff
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,13 @@ define [
|
||||||
$("#editorWrapper").append(@$el)
|
$("#editorWrapper").append(@$el)
|
||||||
@hideEl()
|
@hideEl()
|
||||||
|
|
||||||
|
@ide.editor.on "change:doc", () =>
|
||||||
|
@hideEl()
|
||||||
|
|
||||||
|
@$el.find(".track-changes-close").on "click", (e) =>
|
||||||
|
e.preventDefault
|
||||||
|
@hideEl()
|
||||||
|
|
||||||
show: () ->
|
show: () ->
|
||||||
@project_id = window.userSettings.project_id
|
@project_id = window.userSettings.project_id
|
||||||
@doc_id = @ide.editor.current_doc_id
|
@doc_id = @ide.editor.current_doc_id
|
||||||
|
|
|
@ -26,6 +26,21 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
|
||||||
|
.track-changes-header {
|
||||||
|
background-color: black;
|
||||||
|
h3 {
|
||||||
|
color: white;
|
||||||
|
padding-left: 8px;
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: white;
|
||||||
|
position: absolute;
|
||||||
|
top: 6px;
|
||||||
|
right: 8px;
|
||||||
|
}
|
||||||
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.change-list-area {
|
.change-list-area {
|
||||||
|
@ -33,9 +48,10 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
top: 0px;
|
top: 30px;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.deleted-change-background, .deleted-change-foreground, .inserted-change, .change-name-marker {
|
.deleted-change-background, .deleted-change-foreground, .inserted-change, .change-name-marker {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
Loading…
Reference in a new issue