From f858cb488261ee52ec60f3c8764a47e032426530 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Tue, 1 Mar 2022 14:38:40 +0000 Subject: [PATCH] fixed padding of settings and integrations page --- apps/web/components/Shell.tsx | 14 +- .../integrations/CalendarListContainer.tsx | 2 - apps/web/pages/integrations/index.tsx | 157 +++++++++--------- apps/web/pages/settings/profile.tsx | 24 +-- 4 files changed, 95 insertions(+), 102 deletions(-) diff --git a/apps/web/components/Shell.tsx b/apps/web/components/Shell.tsx index 75fa88c70b..c0d468c786 100644 --- a/apps/web/components/Shell.tsx +++ b/apps/web/components/Shell.tsx @@ -105,12 +105,12 @@ export function ShellSubHeading(props: { className?: string; }) { return ( -
+

{props.title}

- {props.subtitle &&

{props.subtitle}

} + {props.subtitle &&

{props.subtitle}

}
{props.actions &&
{props.actions}
}
@@ -228,7 +228,7 @@ export default function Shell(props: { className={classNames( item.current ? "bg-neutral-100 text-neutral-900" - : "text-neutral-500 hover:bg-gray-50 hover:text-neutral-900", + : "text-neutral-500 hover:text-neutral-900 hover:bg-gray-50", "group flex items-center rounded-sm px-2 py-2 text-sm font-medium" )}>
{/* show top navigation for md and smaller (tablet and phones) */} @@ -273,7 +273,7 @@ export default function Shell(props: {
-
{props.CTA}
@@ -400,7 +400,7 @@ function UserDropdown({ small }: { small?: boolean }) { {user?.username || "Nameless User"} - + {user?.username ? `cal.com/${user.username}` : "No public page"} diff --git a/apps/web/components/integrations/CalendarListContainer.tsx b/apps/web/components/integrations/CalendarListContainer.tsx index e880ef7d94..3af983e7b0 100644 --- a/apps/web/components/integrations/CalendarListContainer.tsx +++ b/apps/web/components/integrations/CalendarListContainer.tsx @@ -208,7 +208,6 @@ export function CalendarListContainer(props: { heading?: false }) { <> {heading && ( {!!query.data?.connectedCalendars.length && ( } /> )} diff --git a/apps/web/pages/integrations/index.tsx b/apps/web/pages/integrations/index.tsx index c90deea2ed..1e4b3879b8 100644 --- a/apps/web/pages/integrations/index.tsx +++ b/apps/web/pages/integrations/index.tsx @@ -121,7 +121,7 @@ function WebhookTestDisclosure() { return ( setOpen(!open)}> - + {t("webhook_test")} @@ -330,7 +330,7 @@ function WebhookListContainer() { query={query} success={({ data }) => ( <> - +
- -
- - -
- Embed -
- {t("standard_iframe")} - {t("embed_your_calendar")} -
-
- - -
+ + + +
+ Embed +
+ {t("standard_iframe")} + {t("embed_your_calendar")}
- - -
- Embed -
- {t("responsive_fullscreen_iframe")} - A fullscreen scheduling experience on your website -
-
- - -
+
+ +
- - -
-
- -
-
- -
+ + +
+ Embed +
+ {t("responsive_fullscreen_iframe")} + A fullscreen scheduling experience on your website +
+
+ + +
+
+ +
+
+ +
+
+
+ +
@@ -553,7 +551,6 @@ function IntegrationsContainer() { } @@ -578,26 +575,24 @@ function Web3Container() { return ( <> -
- - - + + ); } diff --git a/apps/web/pages/settings/profile.tsx b/apps/web/pages/settings/profile.tsx index 1a9f4b1bfc..bd21ce106a 100644 --- a/apps/web/pages/settings/profile.tsx +++ b/apps/web/pages/settings/profile.tsx @@ -47,7 +47,7 @@ function HideBrandingInput(props: { hideBrandingRef: RefObject ref={props.hideBrandingRef} defaultChecked={isBrandingHidden(props.user)} className={ - "h-4 w-4 rounded-sm border-gray-300 text-neutral-900 focus:ring-neutral-800 disabled:opacity-50" + "text-neutral-900 focus:ring-neutral-800 h-4 w-4 rounded-sm border-gray-300 disabled:opacity-50" } onClick={(e) => { if (!e.currentTarget.checked || props.user.plan !== "FREE") { @@ -249,7 +249,7 @@ function SettingsView(props: ComponentProps & { localeProp: str autoComplete="given-name" placeholder={t("your_name")} required - className="mt-1 block w-full rounded-sm border border-gray-300 px-3 py-2 shadow-sm focus:border-neutral-800 focus:outline-none focus:ring-neutral-800 sm:text-sm" + className="focus:border-neutral-800 focus:outline-none focus:ring-neutral-800 mt-1 block w-full rounded-sm border border-gray-300 px-3 py-2 shadow-sm sm:text-sm" defaultValue={props.user.name || undefined} />
@@ -265,7 +265,7 @@ function SettingsView(props: ComponentProps & { localeProp: str name="email" id="email" placeholder={t("your_email")} - className="mt-1 block w-full rounded-sm border-gray-300 shadow-sm focus:border-neutral-800 focus:ring-neutral-800 sm:text-sm" + className="focus:border-neutral-800 focus:ring-neutral-800 mt-1 block w-full rounded-sm border-gray-300 shadow-sm sm:text-sm" defaultValue={props.user.email} />

@@ -286,7 +286,7 @@ function SettingsView(props: ComponentProps & { localeProp: str placeholder={t("little_something_about")} rows={3} defaultValue={props.user.bio || undefined} - className="mt-1 block w-full rounded-sm border-gray-300 shadow-sm focus:border-neutral-800 focus:ring-neutral-800 sm:text-sm"> + className="focus:border-neutral-800 focus:ring-neutral-800 mt-1 block w-full rounded-sm border-gray-300 shadow-sm sm:text-sm">

@@ -303,7 +303,7 @@ function SettingsView(props: ComponentProps & { localeProp: str name="avatar" id="avatar" placeholder="URL" - className="mt-1 block w-full rounded-sm border border-gray-300 px-3 py-2 shadow-sm focus:border-neutral-800 focus:outline-none focus:ring-neutral-800 sm:text-sm" + className="focus:border-neutral-800 focus:outline-none focus:ring-neutral-800 mt-1 block w-full rounded-sm border border-gray-300 px-3 py-2 shadow-sm sm:text-sm" defaultValue={imageSrc} />
@@ -339,7 +339,7 @@ function SettingsView(props: ComponentProps & { localeProp: str value={selectedLanguage || props.localeProp} onChange={(v) => v && setSelectedLanguage(v)} classNamePrefix="react-select" - className="react-select-container mt-1 block w-full rounded-sm border border-gray-300 capitalize shadow-sm focus:border-neutral-800 focus:ring-neutral-800 sm:text-sm" + className="react-select-container focus:border-neutral-800 focus:ring-neutral-800 mt-1 block w-full rounded-sm border border-gray-300 capitalize shadow-sm sm:text-sm" options={localeOptions} />
@@ -354,7 +354,7 @@ function SettingsView(props: ComponentProps & { localeProp: str value={selectedTimeZone} onChange={(v) => v && setSelectedTimeZone(v)} classNamePrefix="react-select" - className="react-select-container mt-1 block w-full rounded-sm border border-gray-300 shadow-sm focus:border-neutral-800 focus:ring-neutral-800 sm:text-sm" + className="react-select-container focus:border-neutral-800 focus:ring-neutral-800 mt-1 block w-full rounded-sm border border-gray-300 shadow-sm sm:text-sm" />
@@ -368,7 +368,7 @@ function SettingsView(props: ComponentProps & { localeProp: str value={selectedTimeFormat || props.user.timeFormat} onChange={(v) => v && setSelectedTimeFormat(v)} classNamePrefix="react-select" - className="react-select-container mt-1 block w-full rounded-sm border border-gray-300 capitalize shadow-sm focus:border-neutral-800 focus:ring-neutral-800 sm:text-sm" + className="react-select-container focus:border-neutral-800 focus:ring-neutral-800 mt-1 block w-full rounded-sm border border-gray-300 capitalize shadow-sm sm:text-sm" options={timeFormatOptions} />
@@ -383,7 +383,7 @@ function SettingsView(props: ComponentProps & { localeProp: str value={selectedWeekStartDay} onChange={(v) => v && setSelectedWeekStartDay(v)} classNamePrefix="react-select" - className="react-select-container mt-1 block w-full rounded-sm border border-gray-300 capitalize shadow-sm focus:border-neutral-800 focus:ring-neutral-800 sm:text-sm" + className="react-select-container focus:border-neutral-800 focus:ring-neutral-800 mt-1 block w-full rounded-sm border border-gray-300 capitalize shadow-sm sm:text-sm" options={[ { value: "Sunday", label: nameOfDay(props.localeProp, 0) }, { value: "Monday", label: nameOfDay(props.localeProp, 1) }, @@ -402,11 +402,11 @@ function SettingsView(props: ComponentProps & { localeProp: str defaultValue={selectedTheme || themeOptions[0]} value={selectedTheme || themeOptions[0]} onChange={(v) => v && setSelectedTheme(v)} - className="| { value: string } mt-1 block w-full rounded-sm border-gray-300 shadow-sm focus:border-neutral-800 focus:ring-neutral-800 sm:text-sm" + className="| { value: string } focus:border-neutral-800 focus:ring-neutral-800 mt-1 block w-full rounded-sm border-gray-300 shadow-sm sm:text-sm" options={themeOptions} />
-
+
& { localeProp: str type="checkbox" onChange={(e) => setSelectedTheme(e.target.checked ? undefined : themeOptions[0])} checked={!selectedTheme} - className="h-4 w-4 rounded-sm border-gray-300 text-neutral-900 focus:ring-neutral-800" + className="text-neutral-900 focus:ring-neutral-800 h-4 w-4 rounded-sm border-gray-300" />