mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix user messages
I fixed the local storage service, user messages were jsut working fine. I updated the UXD, they are now sticky to the right-bottom corner.
This commit is contained in:
parent
57b340adaa
commit
2a32a7f9fe
@ -125,25 +125,25 @@ body {
|
|||||||
*/
|
*/
|
||||||
.user-message {
|
.user-message {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 25%;
|
|
||||||
background-color: #F9EDBE;
|
background-color: #F9EDBE;
|
||||||
padding: 4px 12px;
|
padding: 10px 47px;
|
||||||
padding-right: 20px;
|
|
||||||
border-top-left-radius: 7px;
|
border-top-left-radius: 7px;
|
||||||
border-top-right-radius: 7px;
|
|
||||||
border-right: 0;
|
|
||||||
color: #222;
|
color: #222;
|
||||||
border: #F0C36D 1px solid;
|
border: #F0C36D 1px solid;
|
||||||
|
border-right: 0;
|
||||||
|
border-bottom: 0;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
z-index: 10000;
|
z-index: 10000;
|
||||||
|
max-width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-message .close {
|
.user-message .close {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0px;
|
top: 6px;
|
||||||
right: 5px;
|
right: 17px;
|
||||||
color: gray;
|
color: gray;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -30,8 +30,8 @@
|
|||||||
*/
|
*/
|
||||||
ns.LocalStorageService.prototype.persistToLocalStorage_ = function() {
|
ns.LocalStorageService.prototype.persistToLocalStorage_ = function() {
|
||||||
|
|
||||||
// console.log('[LocalStorage service]: Snapshot stored');
|
console.log('[LocalStorage service]: Snapshot stored');
|
||||||
// window.localStorage.snapShot = this.framesheet.serialize();
|
window.localStorage.snapShot = this.framesheet.serialize();
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -55,7 +55,6 @@
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
ns.LocalStorageService.prototype.init = function(framesheet_) {
|
ns.LocalStorageService.prototype.init = function(framesheet_) {
|
||||||
|
|
||||||
$.subscribe(Events.LOCALSTORAGE_REQUEST, $.proxy(this.persistToLocalStorageRequest_, this));
|
$.subscribe(Events.LOCALSTORAGE_REQUEST, $.proxy(this.persistToLocalStorageRequest_, this));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user