Fix save status overlap issue in editor title bar
This commit is contained in:
@@ -289,7 +289,6 @@ angular.module('app.frontend')
|
|||||||
var note = this.note;
|
var note = this.note;
|
||||||
note.dummy = false;
|
note.dummy = false;
|
||||||
this.save()(note, function(success){
|
this.save()(note, function(success){
|
||||||
this.syncTakingTooLong = false;
|
|
||||||
if(success) {
|
if(success) {
|
||||||
if(statusTimeout) $timeout.cancel(statusTimeout);
|
if(statusTimeout) $timeout.cancel(statusTimeout);
|
||||||
statusTimeout = $timeout(function(){
|
statusTimeout = $timeout(function(){
|
||||||
@@ -298,12 +297,14 @@ angular.module('app.frontend')
|
|||||||
status += " (offline)";
|
status += " (offline)";
|
||||||
}
|
}
|
||||||
this.saveError = false;
|
this.saveError = false;
|
||||||
|
this.syncTakingTooLong = false;
|
||||||
this.noteStatus = $sce.trustAsHtml(status);
|
this.noteStatus = $sce.trustAsHtml(status);
|
||||||
}.bind(this), 200)
|
}.bind(this), 200)
|
||||||
} else {
|
} else {
|
||||||
if(statusTimeout) $timeout.cancel(statusTimeout);
|
if(statusTimeout) $timeout.cancel(statusTimeout);
|
||||||
statusTimeout = $timeout(function(){
|
statusTimeout = $timeout(function(){
|
||||||
this.saveError = true;
|
this.saveError = true;
|
||||||
|
this.syncTakingTooLong = false;
|
||||||
this.noteStatus = $sce.trustAsHtml("Error syncing<br>(changes saved offline)")
|
this.noteStatus = $sce.trustAsHtml("Error syncing<br>(changes saved offline)")
|
||||||
}.bind(this), 200)
|
}.bind(this), 200)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,11 +31,7 @@ $heading-height: 75px;
|
|||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
|
||||||
height: auto;
|
height: auto;
|
||||||
// height: $heading-height;
|
|
||||||
// min-height: $heading-height;
|
|
||||||
|
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
|
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
|
|
||||||
&.fullscreen {
|
&.fullscreen {
|
||||||
@@ -47,11 +43,12 @@ $heading-height: 75px;
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding-top: 0px;
|
padding-top: 0px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
padding-right: 120px; /* make room for save status */
|
||||||
|
|
||||||
> .input {
|
> .input {
|
||||||
float: left;
|
float: left;
|
||||||
text-overflow:ellipsis;
|
text-overflow:ellipsis;
|
||||||
width: 90%;
|
width: 100%;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|||||||
Reference in New Issue
Block a user