snackbar layer overlaping removed
gitea/salix/2087-snackbar_show_counter This commit looks good
Details
gitea/salix/2087-snackbar_show_counter This commit looks good
Details
This commit is contained in:
parent
d9783c80d1
commit
f7d1482466
|
@ -85,7 +85,7 @@ export default class Controller extends Component {
|
||||||
chip.setAttribute('class', 'warning small');
|
chip.setAttribute('class', 'warning small');
|
||||||
let parent = document.createElement('div');
|
let parent = document.createElement('div');
|
||||||
let span = document.createElement('span');
|
let span = document.createElement('span');
|
||||||
let text = document.createTextNode(0);
|
let text = document.createTextNode(1);
|
||||||
span.append(text);
|
span.append(text);
|
||||||
parent.append(span);
|
parent.append(span);
|
||||||
chip.append(parent);
|
chip.append(parent);
|
||||||
|
@ -105,7 +105,7 @@ export default class Controller extends Component {
|
||||||
this.hideTimeout = setTimeout(() => {
|
this.hideTimeout = setTimeout(() => {
|
||||||
this.hide(shape);
|
this.hide(shape);
|
||||||
this.lastShape = null;
|
this.lastShape = null;
|
||||||
}, data.timeout || 3000);
|
}, data.timeout || 9000);
|
||||||
|
|
||||||
this.lastShape = {
|
this.lastShape = {
|
||||||
data: data,
|
data: data,
|
||||||
|
|
|
@ -22,13 +22,12 @@ vn-snackbar .shape {
|
||||||
padding: 0.8em;
|
padding: 0.8em;
|
||||||
|
|
||||||
& > .text {
|
& > .text {
|
||||||
position: relative;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
vn-chip {
|
vn-chip {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: -1.5em;
|
left: -1em;
|
||||||
top: -1.5em;
|
top: -1em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue