From ab9fdf6bb5b42bcf646f3c1ef1425fd0b80d175d Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Wed, 15 Oct 2025 19:57:24 +0200 Subject: [PATCH] Fix passing colors to Mini App --- src/util/themeStyle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/themeStyle.ts b/src/util/themeStyle.ts index 66ba0f563..193a222bb 100644 --- a/src/util/themeStyle.ts +++ b/src/util/themeStyle.ts @@ -47,7 +47,7 @@ export function validateHexColor(color: string) { export function getPropertyHexColor(style: CSSStyleDeclaration, property: string) { const value = style.getPropertyValue(property); if (!value) return undefined; - return prepareHexColor(value.trim()); + return prepareHexColor(value.trim()).slice(0, 7); } export function prepareHexColor(color: string) {