default to 1rem instead 14px
This commit is contained in:
parent
c47bfe53ff
commit
9ed2fd3c4b
4 changed files with 5 additions and 5 deletions
|
|
@ -21,7 +21,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
font-size: var(--textSize, 14px);
|
font-size: var(--textSize, 1rem);
|
||||||
|
|
||||||
--navbar-height: var(--navbarSize, 3.5rem);
|
--navbar-height: var(--navbarSize, 3.5rem);
|
||||||
--emoji-size: var(--emojiSize, 32px);
|
--emoji-size: var(--emojiSize, 32px);
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ const EmojiPicker = {
|
||||||
},
|
},
|
||||||
updateEmojiSize () {
|
updateEmojiSize () {
|
||||||
const css = window.getComputedStyle(this.$refs.popover.$el)
|
const css = window.getComputedStyle(this.$refs.popover.$el)
|
||||||
const fontSize = css.getPropertyValue('font-size') || '14px'
|
const fontSize = css.getPropertyValue('font-size') || '1rem'
|
||||||
const emojiSize = css.getPropertyValue('--emojiSize') || '2.2rem'
|
const emojiSize = css.getPropertyValue('--emojiSize') || '2.2rem'
|
||||||
|
|
||||||
const fontSizeUnit = fontSize.replace(/[0-9,.]+/, '').trim()
|
const fontSizeUnit = fontSize.replace(/[0-9,.]+/, '').trim()
|
||||||
|
|
|
||||||
|
|
@ -245,8 +245,8 @@
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
|
||||||
.emoji {
|
.emoji {
|
||||||
width: 14px;
|
width: 1em;
|
||||||
height: 14px;
|
height: 1em;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ const defaultState = {
|
||||||
palette: null,
|
palette: null,
|
||||||
style: null,
|
style: null,
|
||||||
emojiReactionsScale: 0.5,
|
emojiReactionsScale: 0.5,
|
||||||
textSize: '14px',
|
textSize: '1rem',
|
||||||
emojiSize: '2.2rem',
|
emojiSize: '2.2rem',
|
||||||
navbarSize: '3.5rem',
|
navbarSize: '3.5rem',
|
||||||
panelHeaderSize: '3.2rem',
|
panelHeaderSize: '3.2rem',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue