@@ -104,12 +104,17 @@ export class NotificationsToasts extends Themable {
104104
105105 // Container
106106 const notificationToastContainer = document . createElement ( 'div' ) ;
107- addClass ( notificationToastContainer , 'notification-toast' ) ;
107+ addClass ( notificationToastContainer , 'notification-toast-container ' ) ;
108108 this . notificationsToastsContainer . appendChild ( notificationToastContainer ) ;
109109 itemDisposeables . push ( toDisposable ( ( ) => this . notificationsToastsContainer . removeChild ( notificationToastContainer ) ) ) ;
110110
111+ // Toast
112+ const notificationToast = document . createElement ( 'div' ) ;
113+ addClass ( notificationToast , 'notification-toast' ) ;
114+ notificationToastContainer . appendChild ( notificationToast ) ;
115+
111116 // Create toast with item and show
112- const notificationList = this . instantiationService . createInstance ( NotificationsList , notificationToastContainer , {
117+ const notificationList = this . instantiationService . createInstance ( NotificationsList , notificationToast , {
113118 ariaLabel : localize ( 'notificationsToast' , "Notification Toast" ) ,
114119 verticalScrollMode : ScrollbarVisibility . Hidden
115120 } ) ;
@@ -173,13 +178,13 @@ export class NotificationsToasts extends Themable {
173178
174179 // Animate In if we are in a running session (otherwise just show directly)
175180 if ( this . lifecycleService . phase >= LifecyclePhase . Running ) {
176- addClass ( notificationToastContainer , 'notification-fade-in' ) ;
177- itemDisposeables . push ( addDisposableListener ( notificationToastContainer , 'transitionend' , ( ) => {
178- removeClass ( notificationToastContainer , 'notification-fade-in' ) ;
179- addClass ( notificationToastContainer , 'notification-fade-in-done' ) ;
181+ addClass ( notificationToast , 'notification-fade-in' ) ;
182+ itemDisposeables . push ( addDisposableListener ( notificationToast , 'transitionend' , ( ) => {
183+ removeClass ( notificationToast , 'notification-fade-in' ) ;
184+ addClass ( notificationToast , 'notification-fade-in-done' ) ;
180185 } ) ) ;
181186 } else {
182- addClass ( notificationToastContainer , 'notification-fade-in-done' ) ;
187+ addClass ( notificationToast , 'notification-fade-in-done' ) ;
183188 }
184189 }
185190
0 commit comments