Skip to content

Commit

Permalink
Merge pull request #10694 from Jarsen136/issue-10693
Browse files Browse the repository at this point in the history
fix: Cannot scroll in following profiles
  • Loading branch information
Jarsen136 authored Jul 30, 2024
2 parents 668123d + 4e909d9 commit 1145e55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 0 additions & 6 deletions components/profile/follow/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@
<ProfileFollowTab
v-if="activeTab === 'followers'"
type="followers"
:user-list="followersList"
:total-count="followersCount"
/>
<ProfileFollowTab
v-else
type="following"
:user-list="followingList"
:total-count="followingCount"
/>
</tamplate>
Expand All @@ -45,7 +43,6 @@
<script setup lang="ts">
import { NeoModal } from '@kodadot1/brick'
import TabItem from '@/components/shared/TabItem.vue'
import type { Follower } from '@/services/profile'
import type { Tab } from '@/components/profile/types'
const emit = defineEmits(['close'])
Expand All @@ -63,9 +60,6 @@ const counts = {
following: props.followingCount,
}
const followersList = ref<Follower[]>([])
const followingList = ref<Follower[]>([])
const activeTab = ref<Tab>('followers')
const vOpen = useVModel(props, 'modelValue')
Expand Down
5 changes: 2 additions & 3 deletions components/profile/follow/Tab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div
v-else-if="totalCount > 0"
ref="el"
class="flex flex-col gap-5"
class="flex flex-col gap-5 max-h-[400px] overflow-y-auto"
>
<UserRow
v-for="user in vList"
Expand Down Expand Up @@ -40,11 +40,10 @@ const route = useRoute()
const props = defineProps<{
totalCount: number
userList: Follower[]
type: Tab
}>()
const vList = useVModel(props, 'userList')
const vList = ref<Follower[]>([])
const offset = computed(() => vList.value.length)
const limit = 10
const el = ref<HTMLElement | null>(null)
Expand Down

0 comments on commit 1145e55

Please sign in to comment.