revert changes

This commit is contained in:
Thomas Camlong committed 2026-05-27 16:23:44 +02:00
1 parent 1b19248262
commit 51004f0857
3 files changed
+3 -7

No files matched your search

@@ -12,8 +12,7 @@ export const buildIntegrationUrl = (
mode: UrlTemplateMode,
dockerPort?: number,
): string => {
let host = baseHost.trim();
while (host.endsWith("/")) host = host.slice(0, -1);
const host = baseHost.trim().replace(/\/+$/, "");
if (!host) return "";
const slug = getSlugForKind(kind);
+1 -2
View File
@@ -474,8 +474,7 @@ export const getIntegrationDefaultPort = (kind: IntegrationKind): number | undef
export const getIntegrationApiKeyUrl = (integrationUrl: string, kind: IntegrationKind): string | null => {
const definition = integrationDefs[kind];
if (!("apiKeySettingsPath" in definition)) return null;
let base = integrationUrl;
while (base.endsWith("/")) base = base.slice(0, -1);
const base = integrationUrl.replace(/\/+$/, "");
if (!base) return null;
return `${base}${definition.apiKeySettingsPath}`;
};
+1 -3
View File
@@ -3,8 +3,6 @@ import { createTheme } from "@mantine/core";
import { primaryColor } from "./theme/colors/primary";
import { secondaryColor } from "./theme/colors/secondary";
const XXL_MODAL_SIZE = "75rem";
export const theme = createTheme({
colors: {
primaryColor,
@@ -15,7 +13,7 @@ export const theme = createTheme({
Modal: {
vars: (_theme: unknown, props: { size?: string }) => {
if (props.size === "xxl") {
return { root: { "--modal-size": XXL_MODAL_SIZE } };
return { root: { "--modal-size": "75rem" } };
}
return { root: {} };
},