Fix broken chats
Co-authored-by: @ltlapy
This commit is contained in:
parent
1557d0afb8
commit
8b4be8cad1
2 changed files with 18 additions and 15 deletions
|
@ -196,8 +196,9 @@ const prepend = (item: Item): void => {
|
|||
if (props.pagination.reversed) {
|
||||
if (rootEl.value) {
|
||||
const container = getScrollContainer(rootEl.value);
|
||||
if (container == null) return; // TODO?
|
||||
|
||||
if (container == null) {
|
||||
// TODO?
|
||||
} else {
|
||||
const pos = getScrollPosition(rootEl.value);
|
||||
const viewHeight = container.clientHeight;
|
||||
const height = container.scrollHeight;
|
||||
|
@ -214,6 +215,7 @@ const prepend = (item: Item): void => {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
items.value.push(item);
|
||||
// TODO
|
||||
} else {
|
||||
|
|
|
@ -292,6 +292,7 @@ definePageMetadata(computed(() => !fetching ? user ? {
|
|||
<style lang="scss" scoped>
|
||||
.mk-messaging-room {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
|
||||
> .body {
|
||||
.more {
|
||||
|
@ -337,7 +338,7 @@ definePageMetadata(computed(() => !fetching ? user ? {
|
|||
padding-top: 8px;
|
||||
|
||||
@media (max-width: 500px) {
|
||||
bottom: calc(env(safe-area-inset-bottom, 0px) + 92px);
|
||||
bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
|
||||
}
|
||||
|
||||
> .new-message {
|
||||
|
|
Loading…
Reference in a new issue