diff --git a/admin/app/authentication/github/page.tsx b/admin/app/authentication/github/page.tsx index b65b99205..8532910f7 100644 --- a/admin/app/authentication/github/page.tsx +++ b/admin/app/authentication/github/page.tsx @@ -64,8 +64,8 @@ const InstanceGithubAuthenticationPage = observer(() => { return ( <> -
-
+
+
{ withBorder={false} />
-
+
{formattedConfig ? ( ) : ( diff --git a/admin/app/authentication/google/page.tsx b/admin/app/authentication/google/page.tsx index 05117dbe3..fcdcd47ad 100644 --- a/admin/app/authentication/google/page.tsx +++ b/admin/app/authentication/google/page.tsx @@ -58,8 +58,8 @@ const InstanceGoogleAuthenticationPage = observer(() => { return ( <> -
-
+
+
+
{formattedConfig ? ( ) : ( diff --git a/admin/app/globals.css b/admin/app/globals.css index eefcb1b26..0a2218c21 100644 --- a/admin/app/globals.css +++ b/admin/app/globals.css @@ -332,42 +332,90 @@ body { } /* scrollbar style */ -::-webkit-scrollbar { - display: none; +@-moz-document url-prefix() { + * { + scrollbar-width: none; + } + .vertical-scrollbar, + .horizontal-scrollbar { + scrollbar-width: initial; + scrollbar-color: rgba(96, 100, 108, 0.1) transparent; + } + .vertical-scrollbar:hover, + .horizontal-scrollbar:hover { + scrollbar-color: rgba(96, 100, 108, 0.25) transparent; + } + .vertical-scrollbar:active, + .horizontal-scrollbar:active { + scrollbar-color: rgba(96, 100, 108, 0.7) transparent; + } } -.horizontal-scroll-enable { - overflow-x: scroll; +.vertical-scrollbar { + overflow-y: auto; } - -.horizontal-scroll-enable::-webkit-scrollbar { +.horizontal-scrollbar { + overflow-x: auto; +} +.vertical-scrollbar::-webkit-scrollbar, +.horizontal-scrollbar::-webkit-scrollbar { display: block; - height: 7px; - width: 0; +} +.vertical-scrollbar::-webkit-scrollbar-track, +.horizontal-scrollbar::-webkit-scrollbar-track { + background-color: transparent; + border-radius: 9999px; +} +.vertical-scrollbar::-webkit-scrollbar-thumb, +.horizontal-scrollbar::-webkit-scrollbar-thumb { + background-clip: padding-box; + background-color: rgba(96, 100, 108, 0.1); + border-radius: 9999px; +} +.vertical-scrollbar:hover::-webkit-scrollbar-thumb, +.horizontal-scrollbar:hover::-webkit-scrollbar-thumb { + background-color: rgba(96, 100, 108, 0.25); +} +.vertical-scrollbar::-webkit-scrollbar-thumb:hover, +.horizontal-scrollbar::-webkit-scrollbar-thumb:hover { + background-color: rgba(96, 100, 108, 0.5); +} +.vertical-scrollbar::-webkit-scrollbar-thumb:active, +.horizontal-scrollbar::-webkit-scrollbar-thumb:active { + background-color: rgba(96, 100, 108, 0.7); +} +.vertical-scrollbar::-webkit-scrollbar-corner, +.horizontal-scrollbar::-webkit-scrollbar-corner { + background-color: transparent; +} +.vertical-scrollbar-margin-top-md::-webkit-scrollbar-track { + margin-top: 44px; } -.horizontal-scroll-enable::-webkit-scrollbar-track { - height: 7px; - background-color: rgba(var(--color-background-100)); +/* scrollbar sm size */ +.scrollbar-sm::-webkit-scrollbar { + height: 12px; + width: 12px; } - -.horizontal-scroll-enable::-webkit-scrollbar-thumb { - border-radius: 5px; - background-color: rgba(var(--color-scrollbar)); +.scrollbar-sm::-webkit-scrollbar-thumb { + border: 3px solid rgba(0, 0, 0, 0); } - -.vertical-scroll-enable::-webkit-scrollbar { - display: block; - width: 5px; +/* scrollbar md size */ +.scrollbar-md::-webkit-scrollbar { + height: 14px; + width: 14px; } - -.vertical-scroll-enable::-webkit-scrollbar-track { - width: 5px; +.scrollbar-md::-webkit-scrollbar-thumb { + border: 3px solid rgba(0, 0, 0, 0); } +/* scrollbar lg size */ -.vertical-scroll-enable::-webkit-scrollbar-thumb { - border-radius: 5px; - background-color: rgba(var(--color-background-90)); +.scrollbar-lg::-webkit-scrollbar { + height: 16px; + width: 16px; +} +.scrollbar-lg::-webkit-scrollbar-thumb { + border: 4px solid rgba(0, 0, 0, 0); } /* end scrollbar style */ diff --git a/admin/components/admin-sidebar/help-section.tsx b/admin/components/admin-sidebar/help-section.tsx index 371bb49d8..56ccbcd84 100644 --- a/admin/components/admin-sidebar/help-section.tsx +++ b/admin/components/admin-sidebar/help-section.tsx @@ -38,7 +38,7 @@ export const HelpSection: FC = observer(() => { // refs const helpOptionsRef = useRef(null); - const redirectionLink = encodeURI(WEB_BASE_URL + "/create-workspace"); + const redirectionLink = encodeURI(WEB_BASE_URL + "/"); return (
{ }; return ( -
+
{INSTANCE_ADMIN_LINKS.map((item, index) => { const isActive = item.href === pathName || pathName.includes(item.href); return ( diff --git a/admin/components/instance/setup-form.tsx b/admin/components/instance/setup-form.tsx index 56d536c74..77bf8e562 100644 --- a/admin/components/instance/setup-form.tsx +++ b/admin/components/instance/setup-form.tsx @@ -158,6 +158,7 @@ export const InstanceSetupForm: FC = (props) => { onError={() => setIsSubmitting(false)} > +
@@ -319,8 +320,6 @@ export const InstanceSetupForm: FC = (props) => {
handleFormChange("is_telemetry_enabled", !formData.is_telemetry_enabled)} checked={formData.is_telemetry_enabled} /> diff --git a/admin/components/new-user-popup.tsx b/admin/components/new-user-popup.tsx index 73a405d4a..840de0c3a 100644 --- a/admin/components/new-user-popup.tsx +++ b/admin/components/new-user-popup.tsx @@ -7,9 +7,9 @@ import { useTheme as nextUseTheme } from "next-themes"; // ui import { Button, getButtonStyling } from "@plane/ui"; // helpers -import { resolveGeneralTheme } from "helpers/common.helper"; +import { WEB_BASE_URL, resolveGeneralTheme } from "helpers/common.helper"; // hooks -import { useInstance, useTheme } from "@/hooks/store"; +import { useTheme } from "@/hooks/store"; // icons import TakeoffIconLight from "/public/logos/takeoff-icon-light.svg"; import TakeoffIconDark from "/public/logos/takeoff-icon-dark.svg"; @@ -17,11 +17,10 @@ import TakeoffIconDark from "/public/logos/takeoff-icon-dark.svg"; export const NewUserPopup: React.FC = observer(() => { // hooks const { isNewUserPopup, toggleNewUserPopup } = useTheme(); - const { config } = useInstance(); // theme const { resolvedTheme } = nextUseTheme(); - const redirectionLink = `${config?.app_base_url ? `${config?.app_base_url}/create-workspace` : `/god-mode/`}`; + const redirectionLink = encodeURI(WEB_BASE_URL + "/create-workspace"); if (!isNewUserPopup) return <>; return ( diff --git a/apiserver/plane/license/api/views/instance.py b/apiserver/plane/license/api/views/instance.py index 525ab54ec..1ec09fbb5 100644 --- a/apiserver/plane/license/api/views/instance.py +++ b/apiserver/plane/license/api/views/instance.py @@ -148,7 +148,7 @@ class InstanceEndpoint(BaseAPIView): data["app_base_url"] = settings.APP_BASE_URL instance_data = serializer.data - instance_data["workspaces_exist"] = Workspace.objects.count() > 1 + instance_data["workspaces_exist"] = Workspace.objects.count() >= 1 response_data = {"config": data, "instance": instance_data} return Response(response_data, status=status.HTTP_200_OK)