diff --git a/src/common/index.scss b/src/common/index.scss index 69f24cbd..b62c340c 100644 --- a/src/common/index.scss +++ b/src/common/index.scss @@ -132,9 +132,6 @@ width: 100%; min-width: 100%; max-width: 100%; - height: 90px; - min-height: 90px; - max-height: 90px; border: none; resize: none; outline: none; diff --git a/src/common/layout/LayoutGiftTagView.tsx b/src/common/layout/LayoutGiftTagView.tsx index 41bb1b2e..0db589b0 100644 --- a/src/common/layout/LayoutGiftTagView.tsx +++ b/src/common/layout/LayoutGiftTagView.tsx @@ -1,4 +1,5 @@ import { FC } from 'react'; +import { Column, Flex, Text } from '..'; import { LocalizeText } from '../../api'; import { LayoutAvatarImageView } from './LayoutAvatarImageView'; @@ -16,18 +17,23 @@ export const LayoutGiftTagView: FC = props => const { figure = null, userName = null, message = null, editable = false, onChange = null } = props; return ( -
+
{ !userName &&
} { figure &&
}
-
- { !editable &&
{ message }
} - { editable && onChange && } - { userName &&
{ LocalizeText('catalog.gift_wrapping_new.message_from', ['name'], [userName]) }
} -
-
+ + + { !editable && + { message } } + { editable && (onChange !== null) && + } + { userName && + { LocalizeText('catalog.gift_wrapping_new.message_from', ['name'], [userName]) } } + + + ); };