Skip to content

Commit e5b4aa0

Browse files
committed
fix min-width unit, add additional info into payload
1 parent 72c3931 commit e5b4aa0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components/FeedbackPrompt.astro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,13 @@ import { AstroIcon } from "~/components";
192192
form.addEventListener("submit", async (e) => {
193193
e.preventDefault();
194194

195+
const formData = new FormData(e.target as HTMLFormElement);
196+
formData.set("page", window.location.pathname);
197+
formData.set("option", questions.split("-")[1]);
198+
195199
fetch("https://feedback.developers.cloudflare.com", {
196200
method: "POST",
197-
body: new FormData(e.target as HTMLFormElement),
201+
body: formData,
198202
});
199203

200204
questionsDiv.classList.add("hidden");

src/components/overrides/MarkdownContent.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const { tableOfContents } = Astro.props.entry.data;
4343
<ImageZoom />
4444
<div class="sl-markdown-content">
4545
<slot />
46-
<div class="block !mt-[1.5em] max-[72rem]:hidden">
46+
<div class="!mt-[1.5em] block min-[1152px]:hidden">
4747
<FeedbackPrompt />
4848
</div>
4949
</div>

0 commit comments

Comments
 (0)