Skip to content

Commit e4dc97b

Browse files
authored
chore: update (#107)
1 parent 31c3d79 commit e4dc97b

3 files changed

Lines changed: 45 additions & 43 deletions

File tree

apps/atrium-telegram/app/components/EpicCard.vue

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
<template>
2-
<ActiveCard class="w-full flex flex-col gap-3.5">
3-
<UIcon name="i-lucide-crown" class="size-8 text-primary" />
2+
<ActiveCard>
3+
<div class="w-full flex flex-col gap-3.5">
4+
<UIcon name="i-lucide-crown" class="size-8 text-primary" />
45

5-
<h3 class="text-lg/5 font-bold">
6-
{{ epic.title }}
7-
</h3>
6+
<h3 class="text-lg/5 font-bold">
7+
{{ epic.title }}
8+
</h3>
89

9-
<div class="w-full text-sm/4 text-muted font-normal whitespace-pre-wrap break-words line-clamp-4">
10-
{{ epic.description }}
11-
</div>
10+
<div class="w-full text-sm/4 text-muted font-normal whitespace-pre-wrap break-words line-clamp-4">
11+
{{ epic.description }}
12+
</div>
1213

13-
<div class="flex justify-between items-center">
14-
<div class="flex flex-row gap-4">
15-
<div class="flex flex-row gap-1.5 items-center text-muted">
16-
<UIcon name="i-lucide-message-circle" class="size-5" />
17-
<p>{{ epic?.comments.length }}</p>
14+
<div class="flex justify-between items-center">
15+
<div class="flex flex-row gap-4">
16+
<div class="flex flex-row gap-1.5 items-center text-muted">
17+
<UIcon name="i-lucide-message-circle" class="size-5" />
18+
<p>{{ epic?.comments.length }}</p>
19+
</div>
1820
</div>
19-
</div>
2021

21-
<time
22-
:datetime="epic.createdAt"
23-
class="text-sm text-muted"
24-
v-text="format(new Date(epic.createdAt), 'от d MMMM yyyy', { locale: ru })"
25-
/>
22+
<time
23+
:datetime="epic.createdAt"
24+
class="text-sm text-muted"
25+
v-text="format(new Date(epic.createdAt), 'от d MMMM yyyy', { locale: ru })"
26+
/>
27+
</div>
2628
</div>
2729
</ActiveCard>
2830
</template>

apps/atrium-telegram/app/components/EpicComment.vue

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<template>
2-
<UDropdownMenu
3-
:items="items"
4-
:ui="{
5-
content: 'w-48',
6-
item: 'p-2 motion-preset-slide-left motion-duration-200',
7-
}"
8-
:content="{
9-
sideOffset: -32,
10-
}"
11-
>
12-
<div class="flex flex-row gap-2 items-start">
13-
<div class="mt-1.5">
14-
<UAvatar :src="user?.avatarUrl ?? undefined" />
15-
</div>
16-
<div class="w-full flex flex-col gap-1.5">
2+
<div class="flex flex-row gap-2 items-start">
3+
<div class="mt-2.5">
4+
<UAvatar :src="user?.avatarUrl ?? undefined" />
5+
</div>
6+
<div class="w-full flex flex-col gap-1.5">
7+
<UDropdownMenu
8+
:items="items"
9+
:ui="{
10+
content: 'w-48',
11+
item: 'p-2 motion-preset-slide-left motion-duration-200',
12+
}"
13+
:content="{
14+
sideOffset: -32,
15+
}"
16+
>
1717
<ActiveCard>
1818
<div class="w-full relative flex flex-col justify-between gap-2">
1919
<div class="flex flex-col gap-1">
@@ -27,17 +27,17 @@
2727
</div>
2828
</div>
2929
</ActiveCard>
30+
</UDropdownMenu>
3031

31-
<div v-if="comment?.notifications?.length" class="flex flex-row flex-wrap gap-1">
32-
<UserBeacon
33-
v-for="notification in comment.notifications"
34-
:key="notification.id"
35-
:notification="notification"
36-
/>
37-
</div>
32+
<div v-if="comment?.notifications?.length" class="-mt-4 ml-4 flex flex-row flex-wrap gap-1">
33+
<UserBeacon
34+
v-for="notification in comment.notifications"
35+
:key="notification.id"
36+
:notification="notification"
37+
/>
3838
</div>
3939
</div>
40-
</UDropdownMenu>
40+
</div>
4141
</template>
4242

4343
<script setup lang="ts">

apps/atrium-telegram/app/components/form/CreateEpicCommentBeacon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const availableMembers = computed(() => {
8181
},
8282
}))
8383
})
84-
const selectedMembers = ref<FormMember[]>(availableMembers.value.filter((member) => state.value.usersId?.includes(member.value)) ?? [])
84+
const selectedMembers = ref<FormMember[]>([])
8585
8686
watch(selectedMembers, () => {
8787
if (!selectedMembers.value) {

0 commit comments

Comments
 (0)