diff --git a/front/core/components/snackbar/snackbar.js b/front/core/components/snackbar/snackbar.js index 9eaf42bc3..89cfcc463 100644 --- a/front/core/components/snackbar/snackbar.js +++ b/front/core/components/snackbar/snackbar.js @@ -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, diff --git a/front/core/components/snackbar/style.scss b/front/core/components/snackbar/style.scss index 91f3619da..deaf010fc 100644 --- a/front/core/components/snackbar/style.scss +++ b/front/core/components/snackbar/style.scss @@ -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; } }