File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ const kernelPlugin: JupyterLiteServerPlugin<void> = {
4747 document . body . appendChild ( welcomePanel . getElement ( ) ) ;
4848 const kernel = new EmbeddedKernel ( options , serviceContainer ) ;
4949
50- welcomePanel . show ( ) ;
50+ // welcomePanel.show();
51+ welcomePanel . initialShow ( ) ;
52+
5153 await kernel . ready ;
5254
5355 activeKernels . set ( kernel . id , kernel ) ;
Original file line number Diff line number Diff line change @@ -183,6 +183,19 @@ export default class WelcomePanel {
183183 this . dialogPanel . show ( ) ;
184184 //this.minimizedPanel.hide();
185185 this . minimizedPanel . show ( ) ;
186+ this . minimizedPanel . hide ( ) ;
187+ }
188+
189+ initialShow ( ) : void {
190+ this . element . style . display = 'block' ;
191+ this . element . classList . remove ( 'minimized' ) ;
192+ this . element . classList . add ( 'visible' ) ;
193+
194+ this . element . style . transition = 'opacity 0.3s ease-in-out' ;
195+ this . element . style . opacity = '1' ;
196+
197+ this . dialogPanel . hide ( ) ;
198+ this . minimizedPanel . show ( ) ;
186199 }
187200
188201 hide ( ) : void {
You can’t perform that action at this time.
0 commit comments