Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

integrate with google

Sara Vieirac2a6d71df0ca
diff --git a/app/auth/components/login-button.tsx b/app/auth/components/login-button.tsx
index bc4234cc38..185f231274 100644
--- a/app/auth/components/login-button.tsx
+++ b/app/auth/components/login-button.tsx
@@ -15,7 +15,8 @@ export const LoginButton = ({
onClick?: () => void;
enabled: boolean;
}) => {
- const showTooltip = isPreviewEnvironment && isDevLogin === false && enabled;
+ const showTooltip =
+ (isPreviewEnvironment || enabled === false) && isDevLogin === false;
if (showTooltip) {
const content = isPreviewEnvironment
? "Social login does not work in preview deployments"
diff --git a/app/routes/login/index.tsx b/app/routes/login/index.tsx
index 592b9a3691..ffb6e11207 100644
--- a/app/routes/login/index.tsx
+++ b/app/routes/login/index.tsx
@@ -14,13 +14,15 @@ export const loader: LoaderFunction = async ({ request }) => {
if (user) {
return redirect(config.dashboardPath);
}
-
return {
isDevLogin: process.env.DEV_LOGIN === "true",
env,
- isGithubEnabled: process.env.GH_CLIENT_ID && process.env.GH_CLIENT_SECRET,
- isGoogleEnabled:
- process.env.GOOGLE_CLIENT_ID && process.env.GOOGLE_CLIENT_SECRET,
+ isGithubEnabled: Boolean(
+ process.env.GH_CLIENT_ID && process.env.GH_CLIENT_SECRET
+ ),
+ isGoogleEnabled: Boolean(
+ process.env.GOOGLE_CLIENT_ID && process.env.GOOGLE_CLIENT_SECRET
+ ),
};
};
diff --git a/app/shared/design-system/components/tooltip.tsx b/app/shared/design-system/components/tooltip.tsx
index 3b6f6675e1..5eee96c9f7 100644
--- a/app/shared/design-system/components/tooltip.tsx
+++ b/app/shared/design-system/components/tooltip.tsx
@@ -60,7 +60,7 @@ export const Tooltip = ({
as="p"
css={{
color: "currentColor",
- lineHeight: multiline ? "20px" : undefined,
+ lineHeight: multiline ? "$5" : undefined,
}}
>
{content}