docs: prev and next buttons only show cn title (#6806)

revert-6799-fix-docs-style
Konv Suu 2023-08-06 10:52:49 +08:00 committed by GitHub
parent ed87500e77
commit cb0abe5fd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -21,8 +21,8 @@
></path> ></path>
</svg> </svg>
</span> </span>
<span>{{ prev.title }}</span> <span v-if="isZhCN" class="chinese">{{ prev.subtitle || prev.title }}</span>
<span v-if="isZhCN" class="chinese">{{ prev.subtitle }}</span> <span v-else>{{ prev.enTitle || prev.title }}</span>
</router-link> </router-link>
<router-link <router-link
v-if="next" v-if="next"
@ -30,8 +30,8 @@
class="next-page" class="next-page"
:to="getLocalizedPathname(next.path, isZhCN)" :to="getLocalizedPathname(next.path, isZhCN)"
> >
<span>{{ next.title }}</span> <span v-if="isZhCN" class="chinese">{{ next.subtitle || next.title }}</span>
<span v-if="isZhCN" class="chinese">{{ next.subtitle }}</span> <span v-else>{{ next.enTitle || next.title }}</span>
<span role="img" aria-label="right" class="anticon anticon-right footer-nav-icon-after"> <span role="img" aria-label="right" class="anticon anticon-right footer-nav-icon-after">
<svg <svg
viewBox="64 64 896 896" viewBox="64 64 896 896"
@ -65,4 +65,3 @@ export default defineComponent({
}, },
}); });
</script> </script>
<style lang="less" scoped></style>