Compare commits
No commits in common. "e8338a2f651ecd38270e9d481de275e15131a000" and "5e65c2efb77ea777e87f6a3d9bec3965ac49b653" have entirely different histories.
e8338a2f65
...
5e65c2efb7
5 changed files with 7 additions and 40 deletions
|
|
@ -1 +0,0 @@
|
||||||
modal layout for mobile has new layout to make it easy to use
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
fixed modals buttons overflow
|
|
||||||
|
|
@ -47,9 +47,6 @@ export default {
|
||||||
watch: {
|
watch: {
|
||||||
themeApplied (value) {
|
themeApplied (value) {
|
||||||
this.removeSplash()
|
this.removeSplash()
|
||||||
},
|
|
||||||
layoutType (value) {
|
|
||||||
document.getElementById('modal').classList = ['-' + this.layoutType]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
|
|
@ -57,7 +54,6 @@ export default {
|
||||||
const val = this.$store.getters.mergedConfig.interfaceLanguage
|
const val = this.$store.getters.mergedConfig.interfaceLanguage
|
||||||
this.$store.dispatch('setOption', { name: 'interfaceLanguage', value: val })
|
this.$store.dispatch('setOption', { name: 'interfaceLanguage', value: val })
|
||||||
window.addEventListener('resize', this.updateMobileState)
|
window.addEventListener('resize', this.updateMobileState)
|
||||||
document.getElementById('modal').classList = ['-' + this.layoutType]
|
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
if (this.$store.state.interface.themeApplied) {
|
if (this.$store.state.interface.themeApplied) {
|
||||||
|
|
|
||||||
|
|
@ -69,41 +69,12 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
border-top: 1px solid var(--border);
|
border-top: 1px solid var(--border);
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-gap: 0.5em;
|
justify-content: flex-end;
|
||||||
grid-auto-columns: minmax(max-content, 1fr);
|
|
||||||
height: auto;
|
|
||||||
|
|
||||||
button {
|
button {
|
||||||
width: auto;
|
width: auto;
|
||||||
padding-left: 2em;
|
margin-left: 0.5rem;
|
||||||
padding-right: 2em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#modal.-mobile {
|
|
||||||
.dialog-modal.panel {
|
|
||||||
top: auto;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
max-width: none;
|
|
||||||
transform: none;
|
|
||||||
width: 100vw;
|
|
||||||
margin: auto;
|
|
||||||
z-index: 2001;
|
|
||||||
|
|
||||||
.dialog-modal-footer {
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: flex-end;
|
|
||||||
grid-auto-columns: initial;
|
|
||||||
grid-auto-rows: 1fr;
|
|
||||||
|
|
||||||
button {
|
|
||||||
grid-column: 1;
|
|
||||||
height: 2em;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -140,8 +140,8 @@ 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')
|
||||||
const emojiSize = css.getPropertyValue('--emojiSize') || '2.2rem'
|
const emojiSize = css.getPropertyValue('--emojiSize')
|
||||||
|
|
||||||
const fontSizeUnit = fontSize.replace(/[0-9,.]+/, '')
|
const fontSizeUnit = fontSize.replace(/[0-9,.]+/, '')
|
||||||
const fontSizeValue = Number(fontSize.replace(/[^0-9,.]+/, ''))
|
const fontSizeValue = Number(fontSize.replace(/[^0-9,.]+/, ''))
|
||||||
|
|
@ -155,6 +155,8 @@ const EmojiPicker = {
|
||||||
} else {
|
} else {
|
||||||
fontSizeMultiplier = fontSizeValue / 14
|
fontSizeMultiplier = fontSizeValue / 14
|
||||||
}
|
}
|
||||||
|
console.log('Multiplier', fontSizeMultiplier)
|
||||||
|
console.log('Result', fontSizeMultiplier * 14)
|
||||||
|
|
||||||
let emojiSizeReal
|
let emojiSizeReal
|
||||||
if (emojiSizeUnit.endsWith('em')) {
|
if (emojiSizeUnit.endsWith('em')) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue