Skip to content

Fix: 1173 - fixed onlycover flag in mobile #1243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/core/render/tpl.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { isMobile } from '../util/env';
/**
* Render github corner
* @param {Object} data URL for the View Source on Github link
Expand Down Expand Up @@ -51,9 +50,8 @@ export function main(config) {
: '') +
'<div class="sidebar-nav"><!--sidebar--></div>' +
'</aside>';

return (
(isMobile ? `${aside}<main>` : `<main>${aside}`) +
`<main>${aside}` +
'<section class="content">' +
'<article class="markdown-section" id="main"><!--main--></article>' +
'</section>' +
Expand Down