Improve narrow composer usability

This commit is contained in:
Germain Souquet
2021-09-09 13:27:25 +01:00
parent bbf66a0011
commit aa53444267
3 changed files with 7 additions and 4 deletions

View File

@@ -733,4 +733,8 @@ $hover-select-border: 4px;
padding-bottom: 5px;
margin-bottom: 5px;
}
.mx_MessageComposer_sendMessage {
margin-right: 0;
}
}

View File

@@ -221,7 +221,8 @@ limitations under the License.
border-radius: 50%;
}
&:hover {
&:hover,
&.mx_MessageComposer_closeButtonMenu {
&::after {
background: rgba($accent-color, 0.1);
}
@@ -265,7 +266,6 @@ limitations under the License.
.mx_MessageComposer_sendMessage {
cursor: pointer;
position: relative;
margin-right: 6px;
width: 32px;
height: 32px;
border-radius: 100%;

View File

@@ -30,7 +30,6 @@ import SettingsStore from "../../../settings/SettingsStore";
import {
aboveLeftOf,
ContextMenu,
ContextMenuTooltipButton,
useContextMenu,
MenuItem,
} from "../../structures/ContextMenu";
@@ -113,7 +112,7 @@ const EmojiButton: React.FC<IEmojiButtonProps> = ({ addEmoji, menuPosition, narr
className={className}
onClick={openMenu}
title={!narrowMode && _t('Emoji picker')}
label={narrowMode && _t("Send an emoji")}
label={narrowMode && _t("Add emoji")}
/>
{ contextMenu }