doc: change edit on github button icon

This commit is contained in:
07akioni 2020-05-31 00:57:47 +08:00
parent 0e08f16a0a
commit 8cd5abe766
2 changed files with 8 additions and 3 deletions

View File

@ -14,7 +14,7 @@
</template>
<script>
import editIcon from '../../src/_icons/create-outline'
import editIcon from '../../src/_icons/git-commit-outline'
export default {
name: 'EditOnGithubButton',

View File

@ -12,11 +12,11 @@
<template>
<n-h1 :id="id" class="naive-doc-title">
{{ text }}
<span>{{ text }}</span>
<span class="edit-button">
<n-tooltip
:delay="300"
placement="right"
placement="left"
:show-arrow="true"
>
<template v-slot:activator>
@ -55,6 +55,11 @@ export default {
</script>
<style scoped>
.naive-doc-title {
display: flex;
justify-content: space-between;
}
.naive-doc-title .edit-button {
display: inline-flex;
align-items: center;