fix: replying-to padding

pull/1909/head
Anthony Fu 2023-03-19 23:36:09 +01:00
rodzic 5dd3f4bfa3
commit 791642fac4
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -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 />

Wyświetl plik

@ -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') }}