Skip to content

Commit 0663cb3

Browse files
authored
Fix: fixed onlycover flag in mobile (#1243)
1 parent b90c948 commit 0663cb3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: src/core/render/tpl.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { isMobile } from '../util/env';
21
/**
32
* Render github corner
43
* @param {Object} data URL for the View Source on Github link
@@ -51,9 +50,8 @@ export function main(config) {
5150
: '') +
5251
'<div class="sidebar-nav"><!--sidebar--></div>' +
5352
'</aside>';
54-
5553
return (
56-
(isMobile ? `${aside}<main>` : `<main>${aside}`) +
54+
`<main>${aside}` +
5755
'<section class="content">' +
5856
'<article class="markdown-section" id="main"><!--main--></article>' +
5957
'</section>' +

0 commit comments

Comments
 (0)