diff --git a/src/components/Inbox/CreateModalContent.module.scss b/src/components/Inbox/CreateModalContent.module.scss index a7d9da1e..53328161 100644 --- a/src/components/Inbox/CreateModalContent.module.scss +++ b/src/components/Inbox/CreateModalContent.module.scss @@ -5,4 +5,19 @@ justify-content: space-around; gap: 12px; } + .chatTitleInput { + width: 100%; + padding: 0.5rem 1rem; + font-size: 1.25rem; // Эквивалент fs-3 + line-height: 1.5; + border: 1px solid #ced4da; + border-radius: 0.3rem; + transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + + &:focus { + border-color: #80bdff; + outline: 0; + box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); + } + } } diff --git a/src/components/Inbox/CreateModalContent.tsx b/src/components/Inbox/CreateModalContent.tsx index fcecd440..d2785f7e 100644 --- a/src/components/Inbox/CreateModalContent.tsx +++ b/src/components/Inbox/CreateModalContent.tsx @@ -4,6 +4,7 @@ import { useInbox } from '~/context/inbox' import { useLocalize } from '~/context/localize' import { useUI } from '~/context/ui' import type { Author } from '~/graphql/schema/core.gen' +import { Button } from '../_shared/Button/Button' // Импорт вашего компонента Button import InviteUser from './InviteUser' import styles from './CreateModalContent.module.scss' @@ -43,7 +44,7 @@ const CreateModalContent = (props: Props) => { }) }) - const handleSetTheme = () => { + const handleSetTitle = () => { setChatTitle((_) => (textInput.value.length > 0 && textInput.value) || '') } @@ -72,10 +73,12 @@ const CreateModalContent = (props: Props) => { {usersId().length > 1 && ( (textInput = el)} - onInput={handleSetTheme} + onInput={handleSetTitle} type="text" required={true} - class="form-control form-control-lg fs-3" + class={styles.chatTitleInput} + // TODO: Удалите эти классы, если они не нужны + // class="form-control form-control-lg fs-3" placeholder={t('Chat Title')} /> )} @@ -89,17 +92,21 @@ const CreateModalContent = (props: Props) => {
)