mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-09 18:39:58 +00:00
727d05915f
* fix: rtl arrows on settings page * fix: border on settings page for RTL languages * fix: RTL fixes for logo, search box and logout icon * fix: RTL layout bugs in conversations * chore: remove rtl setting icon * improve arabic locale * add new entries to arabic locale * chore: include number format * fix: RTL layout on several pages * fix: RTL layout of account header and sign in modal * fix: always display account handle in LTR * fix: move character counter in publish widget to left side for RTL * fix: remove border-ss-none unocss rule * fix: many RTL fixes * fix: RTL fixes for many pages * fix: use viewer's direction in all content * chore: use new arabic plural rules * chore: flip arrow on main content header * chore: fix StatusPoll and show_new_items for zh-TW * chore: StatusPoll tooltip on bottom * chore: add `en` variants to i18n conf * chore: update entry to use new plural rule * fix: automatic content direction for status * fix: direction for account handle * fix: direction of polls Co-authored-by: userquin <userquin@gmail.com> Co-authored-by: Jean-Paul Khawam <jeanpaulkhawam@protonmail.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
62 lines
1.8 KiB
Vue
62 lines
1.8 KiB
Vue
<script lang="ts" setup>
|
|
import type { Account } from 'masto'
|
|
const { account, as = 'div' } = $defineProps<{
|
|
account: Account
|
|
as?: string
|
|
}>()
|
|
|
|
cacheAccount(account)
|
|
|
|
defineOptions({
|
|
inheritAttrs: false,
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<component :is="as" block focus:outline-none focus-visible:ring="2 primary" v-bind="$attrs">
|
|
<!-- Banner -->
|
|
<div px2 pt2>
|
|
<div rounded of-hidden bg="gray-500/20" aspect="3.19">
|
|
<img h-full w-full object-cover :src="account.header" :alt="$t('account.profile_description', [account.username])">
|
|
</div>
|
|
</div>
|
|
<div px-4 pb-4 space-y-2>
|
|
<!-- User info -->
|
|
<div flex sm:flex-row flex-col flex-gap-2>
|
|
<div flex items-center justify-between>
|
|
<div w-17 h-17 rounded-full border-4 border-bg-base z-2 mt--2 ms--1>
|
|
<AccountAvatar :account="account" />
|
|
</div>
|
|
<a block sm:hidden href="javascript:;" @click.stop>
|
|
<AccountFollowButton :account="account" />
|
|
</a>
|
|
</div>
|
|
<div sm:mt-2>
|
|
<div>
|
|
<ContentRich
|
|
font-bold text-lg line-clamp-1 ws-pre-wrap break-all
|
|
:content="getDisplayName(account, { rich: true })"
|
|
:emojis="account.emojis"
|
|
/>
|
|
</div>
|
|
<AccountHandle text-sm :account="account" />
|
|
</div>
|
|
</div>
|
|
<!-- Note -->
|
|
<div v-if="account.note" max-h-100 overflow-y-auto>
|
|
<ContentRich
|
|
:content="account.note" :emojis="account.emojis"
|
|
line-clamp-2
|
|
/>
|
|
</div>
|
|
<!-- Follow info -->
|
|
<div flex justify-between items-center>
|
|
<AccountPostsFollowers text-sm :account="account" />
|
|
<a sm:block hidden href="javascript:;" @click.stop>
|
|
<AccountFollowButton :account="account" />
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</component>
|
|
</template>
|