cleanup & lint
This commit is contained in:
parent
6adc4ef2c6
commit
d521a06dad
3 changed files with 13 additions and 4 deletions
|
|
@ -622,9 +622,12 @@ const conversation = {
|
||||||
},
|
},
|
||||||
updateVirtualHeight() {
|
updateVirtualHeight() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
console.log('LMAO', this.$refs.body.clientHeight)
|
|
||||||
this.virtualHeight = this.$refs.body.clientHeight
|
this.virtualHeight = this.$refs.body.clientHeight
|
||||||
this.$emit('update:virtualHeight', { id: this.status.id, height: this.virtualHeight, top: this.$el.clientTop })
|
this.$emit('update:virtualHeight', {
|
||||||
|
id: this.status.id,
|
||||||
|
height: this.virtualHeight,
|
||||||
|
top: this.$el.clientTop,
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ import { mapActions, mapState } from 'pinia'
|
||||||
|
|
||||||
import { useAuthFlowStore } from 'src/stores/auth_flow.js'
|
import { useAuthFlowStore } from 'src/stores/auth_flow.js'
|
||||||
import { useInstanceStore } from 'src/stores/instance.js'
|
import { useInstanceStore } from 'src/stores/instance.js'
|
||||||
import { useUsersStore } from 'src/stores/users.js'
|
|
||||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||||
|
import { useUsersStore } from 'src/stores/users.js'
|
||||||
|
|
||||||
import { getLoginUrl, getTokenWithCredentials } from 'src/api/oauth.js'
|
import { getLoginUrl, getTokenWithCredentials } from 'src/api/oauth.js'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,13 @@ const Status = {
|
||||||
|
|
||||||
threadDisplayStatus: String,
|
threadDisplayStatus: String,
|
||||||
},
|
},
|
||||||
emits: ['goto', 'dive', 'toggleExpanded', 'suspendableStateChange', 'heightChange'],
|
emits: [
|
||||||
|
'goto',
|
||||||
|
'dive',
|
||||||
|
'toggleExpanded',
|
||||||
|
'suspendableStateChange',
|
||||||
|
'heightChange',
|
||||||
|
],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
replying: false,
|
replying: false,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue