From 9aa7fd677469dbabb001786c55be6601ed325dab Mon Sep 17 00:00:00 2001 From: pavel444-byte Date: Sun, 1 Nov 2026 15:40:13 +0500 Subject: [PATCH] Fix Telegram application theme contrast --- app/moderator-apply/apply.tsx | 6 ++++-- app/moderator-apply/moderator-apply.css | 4 +++- app/moderator-apply/page.tsx | 6 +----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/moderator-apply/apply.tsx b/app/moderator-apply/apply.tsx index edd48c2..b620267 100644 --- a/app/moderator-apply/apply.tsx +++ b/app/moderator-apply/apply.tsx @@ -187,7 +187,7 @@ export function ModeratorApplyApp() { const style = useMemo( () => ({ - "--tg-bg": theme.bg_color ?? (theme.secondary_bg_color ? "#0e1621" : "#ffffff"), + "--tg-bg": theme.bg_color ?? "#ffffff", "--tg-secondary-bg": theme.secondary_bg_color ?? "#f4f4f5", "--tg-text": theme.text_color ?? "#000000", "--tg-hint": theme.hint_color ?? "#707579", @@ -206,7 +206,8 @@ export function ModeratorApplyApp() { }, [status]); return ( -
+
+
{status === "loading" &&

Loading…

} {status === "outside" && (
@@ -273,5 +274,6 @@ export function ModeratorApplyApp() {
)}
+
); } diff --git a/app/moderator-apply/moderator-apply.css b/app/moderator-apply/moderator-apply.css index 21a11d4..1960d21 100644 --- a/app/moderator-apply/moderator-apply.css +++ b/app/moderator-apply/moderator-apply.css @@ -69,8 +69,10 @@ border-color: var(--tg-link, #3390ec); } -.tg-apply-input::placeholder { +.tg-apply-input::placeholder, +html[data-theme="light"] .tg-apply-input::placeholder { color: var(--tg-hint, #707579); + opacity: 1; } .tg-apply-error { diff --git a/app/moderator-apply/page.tsx b/app/moderator-apply/page.tsx index ccec8c3..a5cd12b 100644 --- a/app/moderator-apply/page.tsx +++ b/app/moderator-apply/page.tsx @@ -15,9 +15,5 @@ export const viewport: Viewport = { }; export default function ModeratorApplyPage() { - return ( -
- -
- ); + return ; }