fix: navbar text
This commit is contained in:
parent
f7991a26d2
commit
e40bf973e3
@ -12,7 +12,7 @@ defineProps<{
|
||||
<div class="menu-group">
|
||||
<p v-if="text" class="title">
|
||||
<Icon v-if="icon" :name="icon" />
|
||||
<span>{{ text }}</span>
|
||||
<span v-text="text"></span>
|
||||
</p>
|
||||
|
||||
<template v-for="item in items">
|
||||
|
||||
@ -23,7 +23,7 @@ const page = usePageData()
|
||||
:href="item.link"
|
||||
>
|
||||
<Icon v-if="item.icon" :name="item.icon" />
|
||||
<i>{{ item.text }}</i>
|
||||
<i v-text="item.text"></i>
|
||||
</AutoLink>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -25,7 +25,7 @@ const page = usePageData()
|
||||
:no-icon="true"
|
||||
>
|
||||
<Icon v-if="item.icon" :name="item.icon" />
|
||||
<i>{{ item.text }}</i>
|
||||
<i v-text="item.text"></i>
|
||||
</AutoLink>
|
||||
</template>
|
||||
|
||||
|
||||
@ -31,7 +31,7 @@ function toggle() {
|
||||
>
|
||||
<span class="button-text">
|
||||
<Icon v-if="icon" :name="icon" />
|
||||
{{ text }}
|
||||
<i v-text="text"></i>
|
||||
</span>
|
||||
<IconPlus class="button-icon" />
|
||||
</button>
|
||||
@ -106,6 +106,10 @@ function toggle() {
|
||||
color: var(--vp-c-brand);
|
||||
}
|
||||
|
||||
.button-text i {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.button-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
|
||||
@ -18,7 +18,7 @@ const closeScreen = inject('close-screen') as () => void
|
||||
@click="closeScreen"
|
||||
>
|
||||
<Icon v-if="icon" :name="icon" />
|
||||
<i>{{ text }}</i>
|
||||
<i v-text="text"></i>
|
||||
</AutoLink>
|
||||
</template>
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ const closeScreen = inject('close-screen') as () => void
|
||||
<template>
|
||||
<AutoLink class="nav-screen-menu-link" :href="link" @click="closeScreen">
|
||||
<Icon v-if="icon" :name="icon" />
|
||||
<i>{{ text }}</i>
|
||||
<i v-text="text"></i>
|
||||
</AutoLink>
|
||||
</template>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user