Compare commits
4 commits
73888c861f
...
6a401e8984
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6a401e8984 | ||
|
|
d5c4f91bb1 | ||
|
|
fefd4e224a | ||
|
|
353c0f4a12 |
4 changed files with 18 additions and 19 deletions
|
|
@ -164,7 +164,7 @@ export default {
|
|||
const resizeObserver = ref(new ResizeObserver(updateVirtualHeight))
|
||||
watch(rootElement, () => resizeObserver.value.observe(rootElement.value))
|
||||
watch(suspendable, (value) =>
|
||||
emit('suspendableStateChange', { suspend: value, id: statusId.value }),
|
||||
emit('suspendableStateChange', { suspendable: value, id: statusId.value }),
|
||||
)
|
||||
onUnmounted(() => resizeObserver.value.disconnect())
|
||||
|
||||
|
|
@ -215,8 +215,8 @@ export default {
|
|||
})
|
||||
const changeSuspendStateLinearLocal = (e) => {
|
||||
changeSuspendStateLinear(e)
|
||||
const { id, suspend } = e
|
||||
if (suspend) {
|
||||
const { id, suspendable } = e
|
||||
if (suspendable) {
|
||||
unsuspendableIds.value.delete(id)
|
||||
} else {
|
||||
unsuspendableIds.value.add(id)
|
||||
|
|
@ -266,20 +266,19 @@ export default {
|
|||
})
|
||||
const changeSuspendStateAncestorsLocal = (e) => {
|
||||
changeSuspendStateAncestors(e)
|
||||
const { id, suspend } = e
|
||||
if (suspend) {
|
||||
unsuspendableIds.value.add(id)
|
||||
} else {
|
||||
const { id, suspendable } = e
|
||||
if (suspendable) {
|
||||
unsuspendableIds.value.delete(id)
|
||||
} else {
|
||||
unsuspendableIds.value.add(id)
|
||||
}
|
||||
}
|
||||
const changeSuspendStateCurrentLevelLocal = (e) => {
|
||||
changeSuspendStateLinear(e)
|
||||
const { id, suspend } = e
|
||||
if (suspend) {
|
||||
unsuspendableIds.value.add(id)
|
||||
} else {
|
||||
const { id, suspendable } = e
|
||||
if (suspendable) {
|
||||
unsuspendableIds.value.delete(id)
|
||||
} else {
|
||||
unsuspendableIds.value.add(id)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
}
|
||||
|
||||
/* expanded conversation in timeline */
|
||||
&.-expanded .thread-body {
|
||||
&.-expanded:not(.-page) .thread-body {
|
||||
border-left: 4px solid var(--cRed);
|
||||
border-radius: var(--roundness);
|
||||
border-top-left-radius: 0;
|
||||
|
|
|
|||
|
|
@ -634,8 +634,8 @@ const Status = {
|
|||
useStatusesStore().fetchFavs(this.mainStatus.id)
|
||||
}
|
||||
},
|
||||
isSuspendable: function (suspend) {
|
||||
this.$emit('suspendableStateChange', { id: this.status.id, suspend })
|
||||
isSuspendable: function (suspendable) {
|
||||
this.$emit('suspendableStateChange', { id: this.status.id, suspendable })
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,11 +35,11 @@ export function useVirtualScrolling({
|
|||
}) {
|
||||
// # Suspension
|
||||
const unsuspendibleIds = ref(new Set())
|
||||
const changeSuspendState = ({ id, suspend }) => {
|
||||
if (!suspend) {
|
||||
unsuspendibleIds.value.add(id)
|
||||
} else {
|
||||
const changeSuspendState = ({ id, suspendable }) => {
|
||||
if (suspendable) {
|
||||
unsuspendibleIds.value.delete(id)
|
||||
} else {
|
||||
unsuspendibleIds.value.add(id)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue