Skip to content

Commit ab39804

Browse files
authored
Merge branch 'main' into chore--downgrade-sass-version
2 parents cbfe13a + 1145e55 commit ab39804

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

components/profile/follow/Modal.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@
2828
<ProfileFollowTab
2929
v-if="activeTab === 'followers'"
3030
type="followers"
31-
:user-list="followersList"
3231
:total-count="followersCount"
3332
/>
3433
<ProfileFollowTab
3534
v-else
3635
type="following"
37-
:user-list="followingList"
3836
:total-count="followingCount"
3937
/>
4038
</tamplate>
@@ -45,7 +43,6 @@
4543
<script setup lang="ts">
4644
import { NeoModal } from '@kodadot1/brick'
4745
import TabItem from '@/components/shared/TabItem.vue'
48-
import type { Follower } from '@/services/profile'
4946
import type { Tab } from '@/components/profile/types'
5047
5148
const emit = defineEmits(['close'])
@@ -63,9 +60,6 @@ const counts = {
6360
following: props.followingCount,
6461
}
6562
66-
const followersList = ref<Follower[]>([])
67-
const followingList = ref<Follower[]>([])
68-
6963
const activeTab = ref<Tab>('followers')
7064
7165
const vOpen = useVModel(props, 'modelValue')

components/profile/follow/Tab.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<div
1212
v-else-if="totalCount > 0"
1313
ref="el"
14-
class="flex flex-col gap-5"
14+
class="flex flex-col gap-5 max-h-[400px] overflow-y-auto"
1515
>
1616
<UserRow
1717
v-for="user in vList"
@@ -40,11 +40,10 @@ const route = useRoute()
4040
4141
const props = defineProps<{
4242
totalCount: number
43-
userList: Follower[]
4443
type: Tab
4544
}>()
4645
47-
const vList = useVModel(props, 'userList')
46+
const vList = ref<Follower[]>([])
4847
const offset = computed(() => vList.value.length)
4948
const limit = 10
5049
const el = ref<HTMLElement | null>(null)

0 commit comments

Comments
 (0)