style(frontend): apply ultracite 7.12 formatting and lint rules
This commit is contained in:
1 parent
fc4758aa0b
commit
c8e5cff871
109 files changed
+845
-817
No files matched your search
@@ -16,12 +16,12 @@
|
||||
type Tab = "info" | "media" | "files" | "links" | "stories" | "calendar";
|
||||
|
||||
const TABS: { id: Tab; icon: string; label: string }[] = [
|
||||
{ id: "info", icon: "info", label: "Инфо" },
|
||||
{ id: "media", icon: "photo", label: "Медиа" },
|
||||
{ id: "files", icon: "document", label: "Файлы" },
|
||||
{ id: "links", icon: "link", label: "Ссылки" },
|
||||
{ id: "stories", icon: "play-story", label: "Сторис" },
|
||||
{ id: "calendar", icon: "calendar", label: "Календарь" },
|
||||
{ icon: "info", id: "info", label: "Инфо" },
|
||||
{ icon: "photo", id: "media", label: "Медиа" },
|
||||
{ icon: "document", id: "files", label: "Файлы" },
|
||||
{ icon: "link", id: "links", label: "Ссылки" },
|
||||
{ icon: "play-story", id: "stories", label: "Сторис" },
|
||||
{ icon: "calendar", id: "calendar", label: "Календарь" },
|
||||
];
|
||||
|
||||
const MEDIA_KINDS = ["photo", "video", "animation", "video_note"];
|
||||
@@ -75,17 +75,17 @@
|
||||
</script>
|
||||
|
||||
{#if chatId === null}
|
||||
<EmptyState title="Профиль" description="Откройте чат" />
|
||||
<EmptyState description="Откройте чат" title="Профиль" />
|
||||
{:else}
|
||||
<div class="profile">
|
||||
<header class="hero">
|
||||
<Avatar
|
||||
name={title}
|
||||
avatar={{ id: chatId, kind: avatarKind }}
|
||||
colorKey={chatId}
|
||||
size={5}
|
||||
avatar={{ kind: avatarKind, id: chatId }}
|
||||
{hasAvatar}
|
||||
deleted={peer?.is_deleted_account ?? false}
|
||||
{hasAvatar}
|
||||
name={title}
|
||||
size={5}
|
||||
/>
|
||||
<h2 class="name">{title}</h2>
|
||||
<span class="sub">{subtitle}</span>
|
||||
@@ -94,13 +94,13 @@
|
||||
<nav class="tabs">
|
||||
{#each TABS as item (item.id)}
|
||||
<button
|
||||
type="button"
|
||||
aria-label={item.label}
|
||||
class="tab"
|
||||
class:active={tab === item.id}
|
||||
onclick={() => {
|
||||
tab = item.id;
|
||||
}}
|
||||
aria-label={item.label}
|
||||
type="button"
|
||||
class:active={tab === item.id}
|
||||
>
|
||||
<Icon name={item.icon} />
|
||||
</button>
|
||||
@@ -109,7 +109,7 @@
|
||||
|
||||
<div class="tab-body">
|
||||
{#if tab === "info"}
|
||||
<ProfileInfo {chatId} {isDm} {peer} name={title} {avatarKind} />
|
||||
<ProfileInfo {avatarKind} {chatId} {isDm} name={title} {peer} />
|
||||
{:else if tab === "media"}
|
||||
<SharedMedia {chatId} kinds={MEDIA_KINDS} layout="grid" />
|
||||
{:else if tab === "files"}
|
||||
|
||||
Reference in new issue
Block a user