Commit be8932fa54

be8932fa5433998be2476da1314bb6506b024c3d

parent: 05dbade9b0

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-05-09 09:04 UTC

Remove helpfulDescription and fix padding

Layout: unified · split

docs/.vitepress/theme/components/Feedback.vue +3 −8
@@ -118,10 +118,6 @@ const isCardShown = ref<boolean>(false)
118118const helpfulText = props.heading
119119 ? 'What do you think about this section?'
120120 : 'What do you think about this page?'
121const helpfulDescription = props.heading
122 ? 'Let us know how helpful this section is.'
123 : 'Let us know how helpful this page is.'
124
125121const prompt = computed(() => getPrompt())
126122const toggleCard = () => (isCardShown.value = !isCardShown.value)
127123</script>
@@ -154,7 +150,7 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value)
154150 <Transition name="fade" mode="out-in">
155151 <div
156152 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"
158154 >
159155 <Transition name="fade" mode="out-in">
160156 <div v-if="!feedback.type">
@@ -173,9 +169,8 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value)
173169 </button>
174170 </div>
175171 </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">
179174 <span class="text-[22px] font-bold flex items-center gap-2">
180175 <span :class="getFeedbackOption(feedback.type)?.icon" />
181176 {{ getFeedbackOption(feedback.type)?.label }}