提交 1e36fa88 编写于 作者: B Benjamin Pasero

notifications - avoid column-reverse for toasts

上级 70358c40
......@@ -18,7 +18,7 @@
.monaco-workbench > .notifications-toasts.visible {
display: flex;
flex-direction: column-reverse;
flex-direction: column;
}
.monaco-workbench > .notifications-toasts .notification-toast-container {
......
......@@ -108,7 +108,14 @@ export class NotificationsToasts extends Themable {
// Container
const notificationToastContainer = document.createElement('div');
addClass(notificationToastContainer, 'notification-toast-container');
this.notificationsToastsContainer.appendChild(notificationToastContainer);
const firstToast = this.notificationsToastsContainer.firstChild;
if (firstToast) {
this.notificationsToastsContainer.insertBefore(notificationToastContainer, firstToast); // always first
} else {
this.notificationsToastsContainer.appendChild(notificationToastContainer);
}
itemDisposeables.push(toDisposable(() => this.notificationsToastsContainer.removeChild(notificationToastContainer)));
// Toast
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册