Skip to content

Commit c28feae

Browse files
committed
📝(Doc): Fixed content width
1 parent 2b428ed commit c28feae

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

doc-src/src/App.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,14 @@ export default {
312312
display: flex;
313313
max-width: 1000px;
314314
margin: 0 auto;
315+
width: 100vw;
315316
font-size: 1em;
316317
line-height: 1.62;
317318
color: #3b454e;
318319
319320
@include mq('md') {
320321
font-size: 1.125em;
322+
width: calc(100vw - 180px);
321323
}
322324
323325
&-inner {

doc-src/src/components/Navigation.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
<template>
22
<nav>
33
<ul>
4-
<li><a href="#section__about" @click="scrollToExample('#section__about')">About</a></li>
5-
<li><a href="#section__install" @click="scrollToExample('#section__install')">Install</a></li>
4+
<li><a href="#section__about" @click.prevent="scrollToExample('#section__about')">About</a></li>
5+
<li><a href="#section__install" @click.prevent="scrollToExample('#section__install')">Install</a></li>
66
<li
77
v-for="[key] in Object.entries(examples)"
88
:key="key"
99
>
10-
<a :href="`#section__${key}`" @click="scrollToExample(`#section__${key}`)"># {{ key }}</a>
10+
<a :href="`#section__${key}`" @click.prevent="scrollToExample(`#section__${key}`)"># {{ key }}</a>
1111
</li>
12-
1312
</ul>
1413
</nav>
1514
</template>
@@ -23,9 +22,8 @@ export default {
2322
},
2423
methods: {
2524
scrollToExample (element) {
26-
VueScrollTo.scrollTo(element, 300, {
25+
VueScrollTo.scrollTo(element, 500, {
2726
offset: -100,
28-
force: true,
2927
});
3028
},
3129
},

0 commit comments

Comments
 (0)