Fix: bug fixes and UI / UX improvements (#2906)

* Fix: issue with project publish modal data not updating immediately.

* fix: issue with workspace list not scrollable in profile settings.

* fix: update redirect workspace slug logic to redirect to prev workspace instead of `/`.

* style: update API tokens and webhooks empty state designs.
This commit is contained in:
Prateek Shourya
2023-11-28 11:29:01 +05:30
committed by sriram veeraghanta
parent d84e043c93
commit c4fb543372
6 changed files with 83 additions and 33 deletions

View File

@@ -14,7 +14,7 @@ export const ApiTokenEmptyState: React.FC<Props> = (props) => {
return (
<div
className={`flex items-center justify-center mx-auto rounded-sm border border-custom-border-200 bg-custom-background-90 py-10 px-16 w-full`}
className={`flex items-center justify-center mx-auto rounded-sm border border-custom-border-200 bg-custom-background-90 py-10 px-16 w-full lg:w-3/4`}
>
<div className="text-center flex flex-col items-center w-full">
<Image src={emptyApiTokens} className="w-52 sm:w-60" alt="empty" />

View File

@@ -119,7 +119,7 @@ export const PublishProjectModal: React.FC<Props> = observer((props) => {
reset({ ...updatedData });
}
}, [reset, projectPublishStore.projectPublishSettings]);
}, [reset, projectPublishStore.projectPublishSettings, isOpen]);
// fetch publish settings
useEffect(() => {

View File

@@ -11,7 +11,7 @@ export const WebhooksEmptyState = () => {
return (
<div
className={`flex items-center justify-center mx-auto rounded-sm border border-custom-border-200 bg-custom-background-90 py-10 px-16 w-full`}
className={`flex items-center justify-center mx-auto rounded-sm border border-custom-border-200 bg-custom-background-90 py-10 px-16 w-full lg:w-3/4`}
>
<div className="text-center flex flex-col items-center w-full">
<Image src={EmptyWebhook} className="w-52 sm:w-60" alt="empty" />