Skip to content

Commit

Permalink
always show next at the end of the row
Browse files Browse the repository at this point in the history
  • Loading branch information
kuogi committed Nov 3, 2023
1 parent 310a938 commit b9c396f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/main.content.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ class Content {

const goToContainer = document.createElement('div');
goToContainer.classList.add('go-to-container');
goToContainer.classList.toggle('has-only-next', !previousFile && !!nextFile);

if (typeof previousFile != 'undefined') {
goToPreviousMiniTitle.textContent = utils.getCategoryFileName(previousFile.replace(basePath, ''));
Expand Down
4 changes: 4 additions & 0 deletions src/style/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ body .page-container .content:not(.is-loading) .go-to-container {
margin-top: 50px;
}

body .page-container .content:not(.is-loading) .go-to-container.has-only-next {
justify-content: flex-end;
}

body .page-container .content:not(.is-loading) .go-to-container .go-to {
display: flex;
align-items: center;
Expand Down

0 comments on commit b9c396f

Please sign in to comment.