mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
🎨(composer-emojis): Fix styles in emoji picker
Summary: Adjust sizing, padding, etc., to fit better with overall app design. Test Plan: Tested locally. Differential Revision: https://phab.nylas.com/D2627
This commit is contained in:
parent
48131468f0
commit
f04449d67a
2 changed files with 17 additions and 15 deletions
|
@ -171,15 +171,15 @@ class EmojisComposerExtension extends ContenteditableExtension {
|
|||
}
|
||||
}
|
||||
const WIDTH_PER_CHAR = 8;
|
||||
return (maxLength + 10) * WIDTH_PER_CHAR;
|
||||
return (maxLength + 6) * WIDTH_PER_CHAR;
|
||||
}
|
||||
|
||||
static _emojiPickerHeight(emojiOptions) {
|
||||
const HEIGHT_PER_EMOJI = 28;
|
||||
const HEIGHT_PER_EMOJI = 25;
|
||||
if (emojiOptions.length < 5) {
|
||||
return emojiOptions.length * HEIGHT_PER_EMOJI + 20;
|
||||
}
|
||||
return 5 * HEIGHT_PER_EMOJI + 20;
|
||||
return 5 * HEIGHT_PER_EMOJI + 23;
|
||||
}
|
||||
|
||||
static _getTextUntilSpace(node, offset) {
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
@import "ui-variables";
|
||||
|
||||
.emoji-picker {
|
||||
max-height: 155px !important;
|
||||
padding: 10px 10px 10px 10px !important;
|
||||
max-height: 130px !important;
|
||||
margin: 10px;
|
||||
overflow: auto;
|
||||
.btn.btn-icon.emoji-option {
|
||||
background-color: @btn-emphasis-bg-color;
|
||||
color: #FFFFFF;
|
||||
border-radius: 15px;
|
||||
}
|
||||
.btn.btn-icon:hover {
|
||||
background-color: @btn-emphasis-bg-color;
|
||||
color: #FFFFFF;
|
||||
border-radius: 15px;
|
||||
.btn.btn-icon {
|
||||
font-size: 14px !important;
|
||||
padding: 0em 0.5em;
|
||||
&:first-child {
|
||||
padding-left: 0.5em !important;
|
||||
}
|
||||
&.emoji-option, &:hover {
|
||||
background-color: @btn-emphasis-bg-color;
|
||||
color: #FFFFFF;
|
||||
border-radius: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue