From 29433b87a7489ff3a15b3130197677bae4b0f09e Mon Sep 17 00:00:00 2001 From: Kristina <kristin.fefelova@gmail.com> Date: Tue, 15 Oct 2024 23:38:52 +0400 Subject: [PATCH] Fix chat navigator font size (#6947) Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com> --- packages/ui/src/components/NavItem.svelte | 3 +-- .../src/components/chat/navigator/ChatNavItem.svelte | 1 - .../src/components/chat/navigator/ChatNavSection.svelte | 3 +-- .../src/components/chat/navigator/NavItem.svelte | 1 - plugins/chunter-resources/src/components/chat/types.ts | 1 - 5 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/ui/src/components/NavItem.svelte b/packages/ui/src/components/NavItem.svelte index e2e0290585..f511ab7bc0 100644 --- a/packages/ui/src/components/NavItem.svelte +++ b/packages/ui/src/components/NavItem.svelte @@ -44,7 +44,6 @@ export let disabled: boolean = false export let isFold: boolean = false export let isOpen: boolean = false - export let isSecondary: boolean = false export let withBackground: boolean = false export let showMenu: boolean = false export let shouldTooltip: boolean = false @@ -78,7 +77,7 @@ <!-- svelte-ignore a11y-mouse-events-have-key-events --> <button - class="hulyNavItem-container line-height-auto {type} {type === 'type-anchor-link' || isSecondary + class="hulyNavItem-container line-height-auto {type} {type === 'type-anchor-link' ? 'font-regular-12' : 'font-regular-14'}" class:selected diff --git a/plugins/chunter-resources/src/components/chat/navigator/ChatNavItem.svelte b/plugins/chunter-resources/src/components/chat/navigator/ChatNavItem.svelte index 1f60ea29a6..8ee6715691 100644 --- a/plugins/chunter-resources/src/components/chat/navigator/ChatNavItem.svelte +++ b/plugins/chunter-resources/src/components/chat/navigator/ChatNavItem.svelte @@ -123,7 +123,6 @@ _id={item.id} icon={item.icon} withIconBackground={item.withIconBackground} - isSecondary={item.isSecondary} iconSize={item.iconSize} {isSelected} iconProps={{ ...item.iconProps, value: item.object }} diff --git a/plugins/chunter-resources/src/components/chat/navigator/ChatNavSection.svelte b/plugins/chunter-resources/src/components/chat/navigator/ChatNavSection.svelte index 5e35179cad..9dad5d2f89 100644 --- a/plugins/chunter-resources/src/components/chat/navigator/ChatNavSection.svelte +++ b/plugins/chunter-resources/src/components/chat/navigator/ChatNavSection.svelte @@ -91,8 +91,7 @@ icon: icon ?? getObjectIcon(_class), iconProps: { showStatus: true }, iconSize, - withIconBackground: !isDirect && !isPerson, - isSecondary: isDocChat && !isPerson + withIconBackground: !isDirect && !isPerson }) } diff --git a/plugins/chunter-resources/src/components/chat/navigator/NavItem.svelte b/plugins/chunter-resources/src/components/chat/navigator/NavItem.svelte index d9aa6e54be..dfc9be5055 100644 --- a/plugins/chunter-resources/src/components/chat/navigator/NavItem.svelte +++ b/plugins/chunter-resources/src/components/chat/navigator/NavItem.svelte @@ -71,7 +71,6 @@ {title} {description} selected={isSelected} - {isSecondary} count={elementsCount > 0 ? elementsCount : null} {type} withBackground={withIconBackground} diff --git a/plugins/chunter-resources/src/components/chat/types.ts b/plugins/chunter-resources/src/components/chat/types.ts index df6970ebb9..b2362eae99 100644 --- a/plugins/chunter-resources/src/components/chat/types.ts +++ b/plugins/chunter-resources/src/components/chat/types.ts @@ -46,7 +46,6 @@ export interface ChatNavItemModel { icon: Asset | AnySvelteComponent | undefined iconSize?: IconSize iconProps: Record<string, any> - isSecondary: boolean withIconBackground: boolean }