mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 13:53:52 +02:00
fix friend sidebar auto scroll issue
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
friend.ref.statusDescription
|
||||
}}</span>
|
||||
<template v-else>
|
||||
<div v-if="friend.pendingOffline" class="text-xs">
|
||||
<div v-if="friend.pendingOffline" class="extra block truncate text-xs">
|
||||
{{ t('side_panel.pending_offline') }}
|
||||
</div>
|
||||
<template v-else-if="isGroupByInstance">
|
||||
@@ -34,7 +34,7 @@
|
||||
</template>
|
||||
<Location
|
||||
v-else
|
||||
class="text-xs"
|
||||
class="extra block truncate text-xs"
|
||||
:location="locationProp"
|
||||
:traveling="travelingProp"
|
||||
:link="false" />
|
||||
|
||||
@@ -29,13 +29,13 @@
|
||||
<div class="avatar" :class="userStatusClass(currentUser)">
|
||||
<img :src="userImage(currentUser)" loading="lazy" />
|
||||
</div>
|
||||
<div class="detail">
|
||||
<div class="detail h-9 flex flex-col justify-between">
|
||||
<span class="name" :style="{ color: currentUser.$userColour }">{{
|
||||
currentUser.displayName
|
||||
}}</span>
|
||||
<Location
|
||||
v-if="isGameRunning && !gameLogDisabled"
|
||||
class="text-xs"
|
||||
class="extra block truncate text-xs"
|
||||
:location="lastLocation.location"
|
||||
:traveling="lastLocationDestination"
|
||||
:link="false" />
|
||||
@@ -44,12 +44,12 @@
|
||||
isRealInstance(currentUser.$locationTag) ||
|
||||
isRealInstance(currentUser.$travelingToLocation)
|
||||
"
|
||||
class="text-xs"
|
||||
class="extra block truncate text-xs"
|
||||
:location="currentUser.$locationTag"
|
||||
:traveling="currentUser.$travelingToLocation"
|
||||
:link="false" />
|
||||
|
||||
<span v-else class="text-xs">{{ currentUser.statusDescription }}</span>
|
||||
<span v-else class="extra block truncate text-xs">{{ currentUser.statusDescription }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -477,7 +477,8 @@
|
||||
});
|
||||
});
|
||||
|
||||
watch(virtualRows, () => {
|
||||
const virtualRowCount = computed(() => virtualRows.value.length);
|
||||
watch(virtualRowCount, () => {
|
||||
nextTick(() => {
|
||||
virtualizer.value?.measure?.();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user