fix(top-bar): channels popup not displaying on non-homepage pages

This commit is contained in:
Hakadao
2025-02-26 12:11:00 +08:00
parent f6bc071e38
commit 0039f08e7c

View File

@@ -216,7 +216,6 @@ const topBarItemElements: Record<keyof typeof popupVisible, Ref<HTMLElement | un
more,
}
const channelsTransformer = setupTopBarItemTransformer('channels')
const avatarTransformer = setupTopBarItemTransformer('userPanel')
const notificationsTransformer = setupTopBarItemTransformer('notifications')
const momentsTransformer = setupTopBarItemTransformer('moments')
@@ -567,9 +566,8 @@ defineExpose({
<Transition name="slide-in">
<ChannelsPop
v-if="popupVisible.channels"
ref="channelsTransformer"
class="bew-popover"
pos="!left-0"
pos="!left-0 !top-50px"
transform="!translate-x-0"
/>
</Transition>