mirror of https://github.com/vector-im/riot-web
Improve narrow composer usability
parent
bbf66a0011
commit
aa53444267
|
@ -733,4 +733,8 @@ $hover-select-border: 4px;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_MessageComposer_sendMessage {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -221,7 +221,8 @@ limitations under the License.
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover,
|
||||||
|
&.mx_MessageComposer_closeButtonMenu {
|
||||||
&::after {
|
&::after {
|
||||||
background: rgba($accent-color, 0.1);
|
background: rgba($accent-color, 0.1);
|
||||||
}
|
}
|
||||||
|
@ -265,7 +266,6 @@ limitations under the License.
|
||||||
.mx_MessageComposer_sendMessage {
|
.mx_MessageComposer_sendMessage {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-right: 6px;
|
|
||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
|
|
|
@ -30,7 +30,6 @@ import SettingsStore from "../../../settings/SettingsStore";
|
||||||
import {
|
import {
|
||||||
aboveLeftOf,
|
aboveLeftOf,
|
||||||
ContextMenu,
|
ContextMenu,
|
||||||
ContextMenuTooltipButton,
|
|
||||||
useContextMenu,
|
useContextMenu,
|
||||||
MenuItem,
|
MenuItem,
|
||||||
} from "../../structures/ContextMenu";
|
} from "../../structures/ContextMenu";
|
||||||
|
@ -113,7 +112,7 @@ const EmojiButton: React.FC<IEmojiButtonProps> = ({ addEmoji, menuPosition, narr
|
||||||
className={className}
|
className={className}
|
||||||
onClick={openMenu}
|
onClick={openMenu}
|
||||||
title={!narrowMode && _t('Emoji picker')}
|
title={!narrowMode && _t('Emoji picker')}
|
||||||
label={narrowMode && _t("Send an emoji")}
|
label={narrowMode && _t("Add emoji")}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{ contextMenu }
|
{ contextMenu }
|
||||||
|
|
Loading…
Reference in New Issue