fix: Few minor UI issues in Orgs (#9919)

This commit is contained in:
Leo Giovanetti authored and GitHub committed 2023-07-04 22:07:45 +02:00
1 parent 5d73095060
commit 14aa0a2f2d
3 files changed
+6 -3

No files matched your search

@@ -150,7 +150,7 @@ export const CreateANewOrganizationForm = () => {
adminUsername: string; adminUsername: string;
}>({ }>({
defaultValues: { defaultValues: {
slug: `${slug}`, slug: `${slug ?? ""}`,
}, },
}); });
const watchAdminEmail = newOrganizationFormMethods.watch("adminEmail"); const watchAdminEmail = newOrganizationFormMethods.watch("adminEmail");
+4 -1
View File
@@ -948,6 +948,7 @@ export function ShellMain(props: LayoutProps) {
return ( return (
<> <>
{(props.heading || !!props.backPath) && (
<div <div
className={classNames( className={classNames(
"flex items-center md:mb-6 md:mt-0", "flex items-center md:mb-6 md:mt-0",
@@ -971,7 +972,8 @@ export function ShellMain(props: LayoutProps) {
<header <header
className={classNames(props.large && "py-8", "flex w-full max-w-full items-center truncate")}> className={classNames(props.large && "py-8", "flex w-full max-w-full items-center truncate")}>
{props.HeadingLeftIcon && <div className="ltr:mr-4">{props.HeadingLeftIcon}</div>} {props.HeadingLeftIcon && <div className="ltr:mr-4">{props.HeadingLeftIcon}</div>}
<div className={classNames("w-full truncate ltr:mr-4 rtl:ml-4 md:block", props.headerClassName)}> <div
className={classNames("w-full truncate ltr:mr-4 rtl:ml-4 md:block", props.headerClassName)}>
{props.heading && ( {props.heading && (
<h3 <h3
className={classNames( className={classNames(
@@ -1004,6 +1006,7 @@ export function ShellMain(props: LayoutProps) {
</header> </header>
)} )}
</div> </div>
)}
{props.afterHeading && <>{props.afterHeading}</>} {props.afterHeading && <>{props.afterHeading}</>}
<div className={classNames(props.flexChildrenContainer && "flex flex-1 flex-col")}> <div className={classNames(props.flexChildrenContainer && "flex flex-1 flex-col")}>
{props.children} {props.children}
@@ -285,7 +285,7 @@ export const getByViewerHandler = async ({ ctx, input }: GetByViewerOptions) =>
...group.metadata, ...group.metadata,
teamId: group.teamId, teamId: group.teamId,
membershipRole: group.membershipRole, membershipRole: group.membershipRole,
image: `${CAL_URL}/${group.profile.slug}/avatar.png`, image: `${CAL_URL}${group.teamId ? "/team" : ""}/${group.profile.slug}/avatar.png`,
})), })),
}; };
}; };