Skip to content

Commit 882aa12

Browse files
author
Laurie T. Malau
committed
ui
1 parent 2b4824d commit 882aa12

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

components/dashboard/src/feedback-form/FeedbackComponent.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ function FeedbackComponent(props: {
7575
{minimisedFirstView && (
7676
<div
7777
className={
78-
"flex flex-col justify-center px-6 border-t border-gray-200 dark:border-gray-800 " +
79-
(props.isError ? "mt-20" : "py-4")
78+
"flex flex-col justify-center px-6 py-4 border-gray-200 dark:border-gray-800 " +
79+
(props.isError ? "mt-20 bg-gray-100 dark:bg-gray-800 rounded-xl" : "border-t")
8080
}
8181
>
8282
<p
@@ -96,7 +96,9 @@ function FeedbackComponent(props: {
9696
<div
9797
className={
9898
"flex flex-col px-6 py-4 border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 " +
99-
(props.isError ? "w-96 mt-6 bg-gray-100 dark:bg-gray-800 rounded-xl" : "border-t border-b")
99+
(props.isError
100+
? "w-96 mt-6 bg-gray-100 dark:bg-gray-800 rounded-xl"
101+
: "-mx-6 border-t border-b")
100102
}
101103
>
102104
<div className="relative">
@@ -121,22 +123,22 @@ function FeedbackComponent(props: {
121123
.
122124
</p>
123125
</div>
124-
</div>
125-
<div className={"flex justify-end mt-6 " + (props.isError ? "mb-6" : "")}>
126-
<button className="secondary" onClick={onClose}>
127-
Cancel
128-
</button>
129-
<button className="ml-2" onClick={onSubmit}>
130-
Send Feedback
131-
</button>
126+
<div className="flex justify-end mt-6">
127+
<button className="secondary" onClick={onClose}>
128+
Cancel
129+
</button>
130+
<button className="ml-2" onClick={onSubmit}>
131+
Send Feedback
132+
</button>
133+
</div>
132134
</div>
133135
</>
134136
)}
135137
{isFeedbackSubmitted && (
136138
<div
137139
className={
138140
"flex flex-col px-6 py-4 border-gray-200 dark:border-gray-800 " +
139-
(props.isError ? "mt-20" : "mt-6")
141+
(props.isError ? "mt-20 bg-gray-100 dark:bg-gray-800 rounded-xl" : "mt-6")
140142
}
141143
>
142144
<p className={"text-center text-base " + (props.isError ? "text-gray-400" : "text-gray-500")}>

0 commit comments

Comments
 (0)