mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-07 08:58:19 +01:00
fix: 🐛 Fix various layout issues from previous update
Some checks failed
Some checks failed
This commit is contained in:
parent
ba0b5bf4ad
commit
e0204e234b
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<Dialog>
|
||||
<Card class="w-full h-full overflow-hidden relative">
|
||||
<Card class="w-full h-full overflow-hidden relative p-0">
|
||||
<DialogTrigger v-if="attachment.type === 'image'" :as-child="true">
|
||||
<img :src="attachment.url" :alt="attachment.description ?? undefined"
|
||||
class="w-full h-full object-contain bg-muted/20" />
|
||||
|
|
@ -30,7 +30,8 @@
|
|||
</Popover>
|
||||
</Card>
|
||||
<DialogContent :hide-close="true"
|
||||
class="fixed inset-0 z-50 w-screen h-screen p-6 duration-200 bg-transparent border-none grid grid-rows-[auto_1fr_auto] overflow-hidden translate-x-0 translate-y-0 max-w-full !animate-none gap-6">
|
||||
class="p-6 duration-200 bg-transparent border-none overflow-hidden !animate-none gap-6 w-screen h-screen !max-w-none">
|
||||
<div class="grid grid-rows-[auto_1fr_auto]">
|
||||
<div class="flex flex-row gap-2 w-full">
|
||||
<DialogTitle class="sr-only">{{ attachment.type }}</DialogTitle>
|
||||
<Button as="a" :href="attachment?.url" target="_blank" :download="true" variant="ghost" size="icon"
|
||||
|
|
@ -48,8 +49,8 @@
|
|||
class="object-contain" />
|
||||
<video v-else-if="attachment.type === 'video' || attachment.type === 'gifv'" :src="attachment.url"
|
||||
:alt="attachment.description ?? ''" class="object-cover" controls />
|
||||
<audio v-else-if="attachment.type === 'audio'" :src="attachment.url" :alt="attachment.description ?? ''"
|
||||
class="object-cover" controls />
|
||||
<audio v-else-if="attachment.type === 'audio'" :src="attachment.url"
|
||||
:alt="attachment.description ?? ''" class="object-cover" controls />
|
||||
<div v-else class="flex flex-col items-center justify-center">
|
||||
<File class="size-12" />
|
||||
<span class="text-sm"></span>
|
||||
|
|
@ -60,6 +61,7 @@
|
|||
<p class="text-sm">{{ attachment.description }}</p>
|
||||
</Card>
|
||||
</DialogDescription>
|
||||
</div>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
variant="ghost"
|
||||
class="h-fit w-fit p-0 m-0 relative group border overflow-hidden"
|
||||
>
|
||||
<Avatar size="lg" :src="image" :name="displayName" />
|
||||
<Avatar class="size-32" :src="image" :name="displayName" />
|
||||
<div
|
||||
class="absolute inset-0 bg-background/80 flex group-hover:opacity-100 opacity-0 duration-200 items-center justify-center"
|
||||
>
|
||||
|
|
@ -88,7 +88,7 @@
|
|||
<Label>{{
|
||||
m.witty_honest_wallaby_support()
|
||||
}}</Label>
|
||||
<Avatar size="lg" :src="gravatarUrl" />
|
||||
<Avatar class="size-32" :src="gravatarUrl" />
|
||||
</div>
|
||||
</FormItem>
|
||||
</FormField>
|
||||
|
|
@ -114,7 +114,7 @@
|
|||
<Label>{{
|
||||
m.witty_honest_wallaby_support()
|
||||
}}</Label>
|
||||
<Avatar size="lg" :src="value" />
|
||||
<Avatar class="size-32" :src="value" />
|
||||
</div>
|
||||
</FormItem>
|
||||
</FormField>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<Avatar :class="shape.value === 'square' && 'rounded-md'">
|
||||
<Avatar :class="[shape.value === 'square' && 'rounded-md', 'bg-secondary']">
|
||||
<AvatarFallback v-if="name">
|
||||
{{ getInitials(name) }}
|
||||
</AvatarFallback>
|
||||
|
|
|
|||
|
|
@ -16,8 +16,7 @@
|
|||
class="absolute bottom-0 translate-y-1/3 left-4 flex flex-row items-start gap-2"
|
||||
>
|
||||
<Avatar
|
||||
size="lg"
|
||||
class="border"
|
||||
class="size-32 border"
|
||||
:src="avatar"
|
||||
:name="displayName"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
</Button>
|
||||
</ProfileActions>
|
||||
</div>
|
||||
<div class="flex flex-col -mt-1 gap-2 justify-center">
|
||||
<div class="flex flex-col -mt-1 gap-1 justify-center">
|
||||
<CardTitle class="" v-render-emojis="account.emojis">
|
||||
{{ account.display_name }}
|
||||
</CardTitle>
|
||||
|
|
@ -45,10 +45,10 @@
|
|||
>
|
||||
</CopyableText>
|
||||
</div>
|
||||
<ProfileBadges :account="account" />
|
||||
<ProfileBadges :account="account" class="my-2" />
|
||||
<ProfileContent :content="account.note" :emojis="account.emojis" />
|
||||
</CardContent>
|
||||
<CardFooter>
|
||||
<CardFooter class="flex-col *:w-full gap-4">
|
||||
<ProfileStats
|
||||
:creation-date="new Date(account.created_at || 0)"
|
||||
:follower-count="account.followers_count"
|
||||
|
|
|
|||
|
|
@ -33,7 +33,13 @@ export default defineNuxtConfig({
|
|||
},
|
||||
fonts: {
|
||||
families: [
|
||||
{ name: "Inter", provider: "local", weights: [400, 500, 600, 700, 800], styles: ["normal", "italic"], display: "swap" },
|
||||
{
|
||||
name: "Inter",
|
||||
provider: "local",
|
||||
weights: [400, 500, 600, 700, 800],
|
||||
styles: ["normal", "italic"],
|
||||
display: "swap",
|
||||
},
|
||||
],
|
||||
},
|
||||
pwa: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue