From 90396e557fbb676fa63020d06f5dc26da776c737 Mon Sep 17 00:00:00 2001 From: holybasil Date: Mon, 27 Nov 2023 11:52:46 +0800 Subject: [PATCH] fix: Feedback redesign --- src/components/PageContent/Feedback.tsx | 27 +++++++++++++------ .../RightSidebar/RightSidebar.astro | 10 +++---- src/styles/index.css | 14 +++++----- tailwind.config.cjs | 15 +++++++++-- 4 files changed, 42 insertions(+), 24 deletions(-) diff --git a/src/components/PageContent/Feedback.tsx b/src/components/PageContent/Feedback.tsx index e25cb3d70..b5f538837 100644 --- a/src/components/PageContent/Feedback.tsx +++ b/src/components/PageContent/Feedback.tsx @@ -36,6 +36,13 @@ export const Feedback = () => { return } setRating(selectedNumber + 1) + setTimeout(() => { + const scollElement = document.querySelector(".sidebar-nav-inner") + scollElement.scrollTo({ + top: scollElement.scrollHeight, + behavior: "smooth", + }) + }, 0) setIsSent(false) const path = "https://hviedclg.api.lncldglobal.com/1.1/classes/Feedback" const data = { @@ -91,6 +98,7 @@ export const Feedback = () => { style={{ cursor: "pointer", marginRight: "10px", + fontSize: 0, }} > {rating >= i + 1 ? star : starOutline} @@ -99,41 +107,44 @@ export const Feedback = () => { {!!rating && (
{isSent ? ( -
+
We appreciate your feedback! 🤎
) : (
-
+