Commit be8932fa54
Unsigned
Layout: unified · split
docs/.vitepress/theme/components/Feedback.vue +3 −8
| @@ -118,10 +118,6 @@ const isCardShown = ref<boolean>(false) | ||
| 118 | 118 | const helpfulText = props.heading |
| 119 | 119 | ? 'What do you think about this section?' |
| 120 | 120 | : 'What do you think about this page?' |
| 121 | const helpfulDescription = props.heading | |
| 122 | ? 'Let us know how helpful this section is.' | |
| 123 | : 'Let us know how helpful this page is.' | |
| 124 | ||
| 125 | 121 | const prompt = computed(() => getPrompt()) |
| 126 | 122 | const toggleCard = () => (isCardShown.value = !isCardShown.value) |
| 127 | 123 | </script> |
| @@ -154,7 +150,7 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value) | ||
| 154 | 150 | <Transition name="fade" mode="out-in"> |
| 155 | 151 | <div |
| 156 | 152 | v-if="isCardShown" |
| 157 | class="border-$vp-c-divider bg-$vp-c-bg-alt b-rd-4 m-[2rem 0] mt-4 border-2 border-solid p-6" | |
| 153 | class="border-$vp-c-divider bg-$vp-c-bg-alt b-rd-4 m-[2rem 0] mt-4 border-2 border-solid px-6 pt-3 pb-6" | |
| 158 | 154 | > |
| 159 | 155 | <Transition name="fade" mode="out-in"> |
| 160 | 156 | <div v-if="!feedback.type"> |
| @@ -173,9 +169,8 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value) | ||
| 173 | 169 | </button> |
| 174 | 170 | </div> |
| 175 | 171 | </div> |
| 176 | <div v-else-if="feedback.type && !success"> | |
| 177 | <div class="mb-2"> | |
| 178 | <p class="desc">{{ helpfulDescription }}</p> | |
| 172 | <div v-else-if="feedback.type && !success" class="pt-2"> | |
| 173 | <div class="mb-3"> | |
| 179 | 174 | <span class="text-[22px] font-bold flex items-center gap-2"> |
| 180 | 175 | <span :class="getFeedbackOption(feedback.type)?.icon" /> |
| 181 | 176 | {{ getFeedbackOption(feedback.type)?.label }} |