From 3480e3141d75f15273d134a405fb0d9cdd92d633 Mon Sep 17 00:00:00 2001 From: Zakhar Date: Sun, 6 Sep 2026 01:31:49 +0300 Subject: [PATCH] 100dvh overflow filters mobile --- src/components/Family/PersonModal.tsx | 33 ++++++++++++++++++++++----- src/components/Family/TagsInput.tsx | 2 +- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/src/components/Family/PersonModal.tsx b/src/components/Family/PersonModal.tsx index e4bd44d..56d609f 100644 --- a/src/components/Family/PersonModal.tsx +++ b/src/components/Family/PersonModal.tsx @@ -1,5 +1,5 @@ import {useEffect, useState} from 'react'; -import styled from 'styled-components'; +import styled, {css} from 'styled-components'; import type {Gender, User} from '../../types/user'; import {Tag, TagsInput, TagsWrap} from './TagsInput'; @@ -117,10 +117,14 @@ export function PersonModal({ {showExpanded ? ( event.stopPropagation()}>
-

{showExpanded == 'favorite' ? 'Любимые' : 'Исключить'}

- setShowExpanded('')}> - × - +

+ setShowExpanded('')}> + + + + + {showExpanded == 'favorite' ? 'Любимые' : 'Исключить'} +

@@ -283,6 +287,10 @@ const Header = styled.div` font-size: 20px; font-weight: 600; color: ${({theme}) => theme.colors.darkGreen}; + display: flex; + flex-direction: row; + gap: 16px; + align-items: center; } `; @@ -401,4 +409,17 @@ const SaveButton = styled.button` &:hover { background: #5b8f29; } -`; \ No newline at end of file +`; + +const MobileBack = styled.div` + display: none; + top:0; + left:0; + width: 24px; + height: 24px; + justify-content: center; + align-items: center; + ${({ theme }) => theme.media.mobile(css` + display: flex; + `)} +` \ No newline at end of file diff --git a/src/components/Family/TagsInput.tsx b/src/components/Family/TagsInput.tsx index f4a2eae..0575e63 100644 --- a/src/components/Family/TagsInput.tsx +++ b/src/components/Family/TagsInput.tsx @@ -28,7 +28,7 @@ export function TagsInput({ type="button" onClick={onExpand} > - Выбрать + {value.length > 0 ? 'Заменить' : 'Выбрать'}