Skip to content

Commit 62d0edc

Browse files
committed
update
1 parent 9c6394e commit 62d0edc

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

docs/.vuepress/theme/Layout.vue

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ export default {
131131
$route: {
132132
handler(val, oldVal) {
133133
if (this.$isServer) return
134-
window._carbonads && window._carbonads.refresh()
134+
135+
if (document.getElementById('carbonads')) {
136+
window._carbonads && window._carbonads.refresh()
137+
}
135138
},
136139
immediate: true
137140
}
@@ -274,15 +277,9 @@ export default {
274277
</style>
275278

276279
<style>
277-
#carbonads {
278-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
279-
Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial,
280-
sans-serif;
281-
}
282-
283280
#carbonads {
284281
display: flex;
285-
max-width: 270px;
282+
max-width: 280px;
286283
background-color: hsl(0, 0%, 98%);
287284
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, 0.1);
288285
z-index: 2;
@@ -323,7 +320,7 @@ export default {
323320
.carbon-text {
324321
font-size: 13px;
325322
padding: 10px;
326-
line-height: 1.5;
323+
line-height: 1.4;
327324
text-align: left;
328325
}
329326

0 commit comments

Comments
 (0)