From 635545a5fd9c64ad07b8d07d060dc4b3d021a72e Mon Sep 17 00:00:00 2001
From: Alexander Zinchuk
Date: Thu, 13 Feb 2025 14:27:56 +0100
Subject: [PATCH] Contacts: Adjust styles for checkbox (#5577)
---
src/components/main/NewContactModal.scss | 4 ++++
src/components/main/NewContactModal.tsx | 3 ++-
src/components/main/WebAppsCloseConfirmationModal.tsx | 1 +
src/components/middle/composer/PollModal.tsx | 3 +++
src/components/middle/panes/ChatReportPane.tsx | 4 +++-
src/components/modals/urlAuth/UrlAuthModal.module.scss | 3 ---
src/components/modals/urlAuth/UrlAuthModal.tsx | 6 ++----
7 files changed, 15 insertions(+), 9 deletions(-)
delete mode 100644 src/components/modals/urlAuth/UrlAuthModal.module.scss
diff --git a/src/components/main/NewContactModal.scss b/src/components/main/NewContactModal.scss
index 910f2d947..814bf6ae0 100644
--- a/src/components/main/NewContactModal.scss
+++ b/src/components/main/NewContactModal.scss
@@ -43,5 +43,9 @@
&__help-text {
font-size: 0.9375rem;
color: var(--color-text-secondary);
+
+ &__negative {
+ margin-top: -1rem;
+ }
}
}
diff --git a/src/components/main/NewContactModal.tsx b/src/components/main/NewContactModal.tsx
index 6aff04b6f..d20590d50 100644
--- a/src/components/main/NewContactModal.tsx
+++ b/src/components/main/NewContactModal.tsx
@@ -157,12 +157,13 @@ const NewContactModal: FC = ({
)}
-
+
{renderText(lang('AddContact.SharedContactExceptionInfo', renderingUser?.firstName))}
>
diff --git a/src/components/main/WebAppsCloseConfirmationModal.tsx b/src/components/main/WebAppsCloseConfirmationModal.tsx
index 7c1d26039..3d7faeca4 100644
--- a/src/components/main/WebAppsCloseConfirmationModal.tsx
+++ b/src/components/main/WebAppsCloseConfirmationModal.tsx
@@ -54,6 +54,7 @@ const WebAppsCloseConfirmationModal: FC = ({
>
{lang('AreYouSureCloseMiniApps')}
= ({
{!shouldBeAnonymous && (
)}
= ({
= ({
>
{user && (
= ({
)}
{user && canReportSpam && (
= ({
{renderText(lang('OpenUrlAlert2', currentAuth?.url), ['links'])}
{domain && (
@@ -92,11 +91,11 @@ const UrlAuthModal: FC = ({
>
)}
onCheck={handleLoginChecked}
- className={styles.checkbox}
/>
)}
{shouldRequestWriteAccess && (
@@ -108,7 +107,6 @@ const UrlAuthModal: FC = ({
)}
onCheck={setWriteAccessChecked}
disabled={!isLoginChecked}
- className={styles.checkbox}
/>
)}