mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-01 08:18:45 +09:00
fix(friendly): Chat field partially obscured when scrolling
This commit is contained in:
parent
7e27d5676b
commit
7a1ff881f0
@ -5,7 +5,7 @@
|
||||
@dragover.prevent.stop="onDragover"
|
||||
@drop.prevent.stop="onDrop"
|
||||
>
|
||||
<div class="_content mk-messaging-room">
|
||||
<div class="_content mk-messaging-room" :class="{ friendly: isFriendly }">
|
||||
<div class="body">
|
||||
<MkPagination v-if="pagination" ref="pagingComponent" :key="userAcct || groupId" :pagination="pagination">
|
||||
<template #empty>
|
||||
@ -29,7 +29,7 @@
|
||||
</template>
|
||||
</MkPagination>
|
||||
</div>
|
||||
<footer>
|
||||
<footer :class="{friendly: isFriendly }">
|
||||
<div v-if="typers.length > 0" class="typers">
|
||||
<I18n :src="i18n.ts.typingUsers" text-tag="span" class="users">
|
||||
<template #users>
|
||||
@ -66,6 +66,8 @@ import { $i } from '@/account';
|
||||
import { defaultStore } from '@/store';
|
||||
import { definePageMetadata } from '@/scripts/page-metadata';
|
||||
|
||||
const isFriendly = $ref(localStorage.getItem('ui') === 'friendly');
|
||||
|
||||
const props = defineProps<{
|
||||
userAcct?: string;
|
||||
groupId?: string;
|
||||
@ -292,7 +294,11 @@ definePageMetadata(computed(() => !fetching ? user ? {
|
||||
<style lang="scss" scoped>
|
||||
.mk-messaging-room {
|
||||
position: relative;
|
||||
// overflow: auto;
|
||||
overflow: auto;
|
||||
|
||||
&.friendly {
|
||||
overflow: initial;
|
||||
}
|
||||
|
||||
> .body {
|
||||
.more {
|
||||
@ -334,9 +340,13 @@ definePageMetadata(computed(() => !fetching ? user ? {
|
||||
width: 100%;
|
||||
position: sticky;
|
||||
z-index: 2;
|
||||
bottom: 0;
|
||||
padding-top: 8px;
|
||||
// bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
|
||||
bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
|
||||
|
||||
&.friendly {
|
||||
padding-top: 64px;
|
||||
bottom: calc(env(safe-area-inset-bottom, 0px) + 50px);
|
||||
}
|
||||
|
||||
> .new-message {
|
||||
width: 100%;
|
||||
|
@ -8,7 +8,7 @@
|
||||
<div :class="$style.content">
|
||||
<RouterView/>
|
||||
</div>
|
||||
<div :class="$style.spacer"></div>
|
||||
<div v-if="!(mainRouter.currentRoute.value.name === 'messaging-room' || mainRouter.currentRoute.value.name === 'messaging-room-group')" :class="$style.spacer"></div>
|
||||
</main>
|
||||
</MkStickyContainer>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user