提交 b874a7a5 编写于 作者: C Christof Marti

Make title show at inital window size (fixes #19466)

上级 e6a82d5f
...@@ -187,7 +187,7 @@ export class WalkThroughPart extends BaseEditor { ...@@ -187,7 +187,7 @@ export class WalkThroughPart extends BaseEditor {
const innerContent = this.content.firstElementChild; const innerContent = this.content.firstElementChild;
if (this.size && innerContent) { if (this.size && innerContent) {
const classList = innerContent.classList; const classList = innerContent.classList;
classList[this.size.height <= 690 ? 'add' : 'remove']('max-height-690px'); classList[this.size.height <= 685 ? 'add' : 'remove']('max-height-685px');
} }
} }
......
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
} }
.monaco-workbench > .part.editor > .content .welcomePage .title { .monaco-workbench > .part.editor > .content .welcomePage .title {
margin-top: 1em;
margin-bottom: 1em; margin-bottom: 1em;
flex: 1 100%; flex: 1 100%;
} }
...@@ -127,7 +128,7 @@ ...@@ -127,7 +128,7 @@
padding: 0; padding: 0;
} }
.monaco-workbench > .part.editor > .content .welcomePage .splash .recent.empty { .monaco-workbench > .part.editor > .content .welcomePage.emptyRecent .splash .recent {
display: none; display: none;
} }
...@@ -245,7 +246,7 @@ ...@@ -245,7 +246,7 @@
outline-offset: -5px; outline-offset: -5px;
} }
.monaco-workbench > .part.editor > .content .welcomePageContainer.max-height-690px .title { .monaco-workbench > .part.editor > .content .welcomePageContainer.max-height-685px .title {
display: none; display: none;
} }
......
...@@ -116,8 +116,8 @@ class WelcomePage { ...@@ -116,8 +116,8 @@ class WelcomePage {
folders = folders.filter(folder => folder !== current); folders = folders.filter(folder => folder !== current);
} }
if (!folders.length) { if (!folders.length) {
const recent = container.querySelector('.recent') as HTMLElement; const recent = container.querySelector('.welcomePage') as HTMLElement;
recent.classList.add('empty'); recent.classList.add('emptyRecent');
return; return;
} }
const ul = container.querySelector('.recent ul'); const ul = container.querySelector('.recent ul');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册