Commit be8932fa54
Unsigned
Layout: unified · split
docs/.vitepress/theme/components/Feedback.vue +3 −8
| @@ -118,10 +118,6 @@ const isCardShown = ref<boolean>(false) | |||
| 118 | const helpfulText = props.heading | 118 | const helpfulText = props.heading |
| 119 | ? 'What do you think about this section?' | 119 | ? 'What do you think about this section?' |
| 120 | : 'What do you think about this page?' | 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 | const prompt = computed(() => getPrompt()) | 121 | const prompt = computed(() => getPrompt()) |
| 126 | const toggleCard = () => (isCardShown.value = !isCardShown.value) | 122 | const toggleCard = () => (isCardShown.value = !isCardShown.value) |
| 127 | </script> | 123 | </script> |
| @@ -154,7 +150,7 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value) | |||
| 154 | <Transition name="fade" mode="out-in"> | 150 | <Transition name="fade" mode="out-in"> |
| 155 | <div | 151 | <div |
| 156 | v-if="isCardShown" | 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 | <Transition name="fade" mode="out-in"> | 155 | <Transition name="fade" mode="out-in"> |
| 160 | <div v-if="!feedback.type"> | 156 | <div v-if="!feedback.type"> |
| @@ -173,9 +169,8 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value) | |||
| 173 | </button> | 169 | </button> |
| 174 | </div> | 170 | </div> |
| 175 | </div> | 171 | </div> |
| 176 | <div v-else-if="feedback.type && !success"> | 172 | <div v-else-if="feedback.type && !success" class="pt-2"> |
| 177 | <div class="mb-2"> | 173 | <div class="mb-3"> |
| 178 | <p class="desc">{{ helpfulDescription }}</p> | ||
| 179 | <span class="text-[22px] font-bold flex items-center gap-2"> | 174 | <span class="text-[22px] font-bold flex items-center gap-2"> |
| 180 | <span :class="getFeedbackOption(feedback.type)?.icon" /> | 175 | <span :class="getFeedbackOption(feedback.type)?.icon" /> |
| 181 | {{ getFeedbackOption(feedback.type)?.label }} | 176 | {{ getFeedbackOption(feedback.type)?.label }} |