Composer: Less interactive area for Symbol Menu button (#2108)

This commit is contained in:
Alexander Zinchuk 2022-11-07 23:00:35 +04:00
parent 88c0aced2b
commit 694529ebde
2 changed files with 24 additions and 1 deletions

View File

@ -391,6 +391,17 @@
}
}
@media (min-width: 600px) {
.symbol-menu-button {
width: 2rem !important;
margin-left: 0.75rem !important;
.Button + & {
margin-left: -0.25rem !important;
}
}
}
#message-input-text,
#caption-input-text {
position: relative;
@ -437,11 +448,19 @@
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
@media (min-width: 600px) {
left: 0.75rem;
}
}
.forced-placeholder {
z-index: var(--z-below);
left: 0;
@media (min-width: 600px) {
left: 0.75rem;
}
}
&[dir="rtl"] .placeholder-text {
@ -530,6 +549,10 @@
.form-control {
padding-left: 0;
padding-right: 0;
@media (min-width: 600px) {
padding-left: 0.75rem;
}
}
}

View File

@ -1211,7 +1211,7 @@ const Composer: FC<OwnProps & StateProps> = ({
</Button>
) : (
<ResponsiveHoverButton
className={isSymbolMenuOpen ? 'activated' : ''}
className={buildClassName('symbol-menu-button', isSymbolMenuOpen && 'activated')}
round
color="translucent"
onActivate={handleActivateSymbolMenu}