mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Fix Welcome page layout (#208857)
This commit is contained in:
parent
3ff48780d3
commit
246d700c46
|
@ -853,17 +853,21 @@ export class GettingStartedPage extends EditorPane {
|
|||
if (gettingStartedList.itemCount) {
|
||||
this.container.classList.remove('noWalkthroughs');
|
||||
if (videoList?.itemCount > 0) {
|
||||
this.container.classList.remove('noVideos');
|
||||
reset(rightColumn, videoList?.getDomElement(), gettingStartedList.getDomElement());
|
||||
} else {
|
||||
this.container.classList.add('noVideos');
|
||||
reset(rightColumn, gettingStartedList.getDomElement());
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.container.classList.add('noWalkthroughs');
|
||||
if (videoList?.itemCount > 0) {
|
||||
this.container.classList.remove('noVideos');
|
||||
reset(rightColumn, videoList?.getDomElement());
|
||||
}
|
||||
else {
|
||||
this.container.classList.add('noVideos');
|
||||
reset(rightColumn);
|
||||
}
|
||||
}
|
||||
|
@ -872,7 +876,7 @@ export class GettingStartedPage extends EditorPane {
|
|||
};
|
||||
|
||||
const layoutRecentList = () => {
|
||||
if (this.container.classList.contains('noWalkthroughs') && videoList?.itemCount === 0) {
|
||||
if (this.container.classList.contains('noWalkthroughs') && this.container.classList.contains('noVideos')) {
|
||||
recentList.setLimit(10);
|
||||
reset(leftColumn, startList.getDomElement());
|
||||
reset(rightColumn, recentList.getDomElement());
|
||||
|
|
Loading…
Reference in a new issue