Skip to content

Commit 046ea54

Browse files
committed
props
1 parent a7b5c9c commit 046ea54

File tree

4 files changed

+360
-105
lines changed

4 files changed

+360
-105
lines changed

src/.vitepress/theme/components/PreferenceSwitch.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function useToggleFn(
7575
>?</a
7676
>
7777
</div>
78-
<div class="switch-container">
78+
<div class="switch-container" v-if="route.path.startsWith('/examples')">
7979
<label class="no-sfc-label" @click="toggleSFC(false)">HTML</label>
8080
<VTSwitch
8181
class="sfc-switch"
@@ -141,8 +141,8 @@ function useToggleFn(
141141
align-items: center;
142142
}
143143
144-
.switch-container:first-child {
145-
margin-bottom: 10px;
144+
.switch-container:nth-child(2) {
145+
margin-top: 10px;
146146
}
147147
148148
.vt-switch {

0 commit comments

Comments
 (0)