Skip to content

Commit

Permalink
Fix Welcome page layout (#208857)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavyaus authored Mar 27, 2024
1 parent 3ff4878 commit 246d700
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand All @@ -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());
Expand Down

0 comments on commit 246d700

Please sign in to comment.