snackbar layer overlaping removed
gitea/salix/2087-snackbar_show_counter This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-02-20 11:23:21 +01:00
parent d9783c80d1
commit f7d1482466
2 changed files with 4 additions and 5 deletions

View File

@ -85,7 +85,7 @@ export default class Controller extends Component {
chip.setAttribute('class', 'warning small');
let parent = document.createElement('div');
let span = document.createElement('span');
let text = document.createTextNode(0);
let text = document.createTextNode(1);
span.append(text);
parent.append(span);
chip.append(parent);
@ -105,7 +105,7 @@ export default class Controller extends Component {
this.hideTimeout = setTimeout(() => {
this.hide(shape);
this.lastShape = null;
}, data.timeout || 3000);
}, data.timeout || 9000);
this.lastShape = {
data: data,

View File

@ -22,13 +22,12 @@ vn-snackbar .shape {
padding: 0.8em;
& > .text {
position: relative;
text-align: center;
vn-chip {
position: absolute;
left: -1.5em;
top: -1.5em;
left: -1em;
top: -1em;
}
}