fix: replying-to padding

zio/stable
Anthony Fu 2023-03-19 23:36:09 +01:00
parent 5dd3f4bfa3
commit 791642fac4
2 changed files with 9 additions and 2 deletions

View File

@ -10,11 +10,18 @@ const { link = true, avatar = true } = defineProps<{
const userSettings = useUserSettings() const userSettings = useUserSettings()
</script> </script>
<script lang="ts">
export default {
inheritAttrs: false,
}
</script>
<template> <template>
<AccountHoverWrapper :account="account"> <AccountHoverWrapper :account="account">
<NuxtLink <NuxtLink
:to="link ? getAccountRoute(account) : undefined" :to="link ? getAccountRoute(account) : undefined"
:class="link ? 'text-link-rounded -ml-1.8rem pl-1.8rem rtl-(ml0 pl-0.5rem -mr-1.8rem pr-1.8rem)' : ''" :class="link ? 'text-link-rounded -ml-1.5rem pl-1.5rem rtl-(ml0 pl-0.5rem -mr-1.5rem pr-1.5rem)' : ''"
v-bind="$attrs"
min-w-0 flex gap-2 items-center min-w-0 flex gap-2 items-center
> >
<AccountAvatar v-if="avatar" :account="account" w-5 h-5 /> <AccountAvatar v-if="avatar" :account="account" w-5 h-5 />

View File

@ -30,7 +30,7 @@ const account = isSelf ? computed(() => status.account) : useAccountById(status.
<div ws-nowrap flex> <div ws-nowrap flex>
<i18n-t keypath="status.replying_to"> <i18n-t keypath="status.replying_to">
<template v-if="account"> <template v-if="account">
<AccountInlineInfo :account="account" :link="false" m-inline-1 /> <AccountInlineInfo :account="account" :link="false" m-inline-2 />
</template> </template>
<template v-else> <template v-else>
{{ $t('status.someone') }} {{ $t('status.someone') }}