fix: minor ui fixes (#469)

This commit is contained in:
Aaryan Khandelwal 2023-03-17 10:39:06 +05:30 committed by GitHub
parent 5f796e732a
commit 4de0abfc22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 11 deletions

View file

@ -88,7 +88,7 @@ export const IssueDescriptionForm: FC<IssueDetailsProps> = ({
const isNotAllowed = userAuth.isGuest || userAuth.isViewer;
return (
<div>
<div className="relative">
<div className="relative">
<TextArea
id="name"
@ -152,7 +152,13 @@ export const IssueDescriptionForm: FC<IssueDetailsProps> = ({
onHTMLChange={(html) => setValue("description_html", html)}
editable={!isNotAllowed}
/>
<div className="text-right text-sm text-gray-500">{isSubmitting && "Saving..."}</div>
<div
className={`absolute -bottom-8 right-0 text-sm text-gray-500 ${
isSubmitting ? "block" : "hidden"
}`}
>
Saving...
</div>
</div>
);
};