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

Hide Recent when empty

上级 6b862fc9
......@@ -102,6 +102,9 @@
padding: 0;
}
.monaco-workbench > .part.editor > .content .welcomePage .splash .recent.empty {
display: none;
}
.monaco-workbench > .part.editor > .content .welcomePage .splash .recent li {
min-width: 0;
white-space: nowrap;
......
......@@ -97,6 +97,11 @@ class WelcomePage {
});
recentlyOpened.then(({folders}) => {
if (!folders.length) {
const recent = container.querySelector('.recent') as HTMLElement;
recent.classList.add('empty');
return;
}
const ul = container.querySelector('.recent ul');
if (this.contextService.hasWorkspace()) {
const current = this.contextService.getWorkspace().resource.fsPath;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册