forked from Mirrors/elk
chore: update entries
This commit is contained in:
parent
6d2f70b2ba
commit
4ab1de45f4
3 changed files with 7 additions and 7 deletions
|
@ -17,6 +17,7 @@ cacheAccount(account)
|
||||||
shrink
|
shrink
|
||||||
overflow-hidden
|
overflow-hidden
|
||||||
:to="getAccountRoute(account)"
|
:to="getAccountRoute(account)"
|
||||||
|
@click="$rememberAccountPosition(getAccountRoute(account).fullPath)"
|
||||||
/>
|
/>
|
||||||
<div h-full p1 shrink-0>
|
<div h-full p1 shrink-0>
|
||||||
<AccountFollowButton :account="account" />
|
<AccountFollowButton :account="account" />
|
||||||
|
|
|
@ -4,17 +4,15 @@ import type { mastodon } from 'masto'
|
||||||
const { notification } = defineProps<{
|
const { notification } = defineProps<{
|
||||||
notification: mastodon.v1.Notification
|
notification: mastodon.v1.Notification
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const nuxt = useNuxtApp()
|
|
||||||
function click() {
|
|
||||||
nuxt.$rememberAccountPosition(getAccountRoute(notification.account).fullPath)
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<article flex flex-col relative>
|
<article flex flex-col relative>
|
||||||
<template v-if="notification.type === 'follow'">
|
<template v-if="notification.type === 'follow'">
|
||||||
<NuxtLink :to="getAccountRoute(notification.account)" @click="click">
|
<NuxtLink
|
||||||
|
:to="getAccountRoute(notification.account)"
|
||||||
|
@click="$rememberAccountPosition(getAccountRoute(notification.account).fullPath)"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
flex items-center absolute
|
flex items-center absolute
|
||||||
ps-3 pe-4 inset-is-0
|
ps-3 pe-4 inset-is-0
|
||||||
|
|
|
@ -42,6 +42,7 @@ const statusRoute = $computed(() => getStatusRoute(status))
|
||||||
|
|
||||||
const el = ref<HTMLElement>()
|
const el = ref<HTMLElement>()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
const nuxtApp = useNuxtApp()
|
||||||
|
|
||||||
function onclick(evt: MouseEvent | KeyboardEvent) {
|
function onclick(evt: MouseEvent | KeyboardEvent) {
|
||||||
const path = evt.composedPath() as HTMLElement[]
|
const path = evt.composedPath() as HTMLElement[]
|
||||||
|
@ -56,7 +57,7 @@ function go(evt: MouseEvent | KeyboardEvent) {
|
||||||
window.open(statusRoute.href)
|
window.open(statusRoute.href)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
useNuxtApp().$rememberStatusPosition(status)
|
nuxtApp.$rememberStatusPosition(status)
|
||||||
cacheStatus(status)
|
cacheStatus(status)
|
||||||
router.push(statusRoute)
|
router.push(statusRoute)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue