Skip to content

Commit b217214

Browse files
committed
fix: truncate brand name in sidebar if it exceeds 10 characters
1 parent f56f836 commit b217214

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adminforth/spa/src/components/Sidebar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
v-if="coreStore.config?.showBrandNameInSidebar && (!iconOnlySidebarEnabled || !isSidebarIconOnly || (isSidebarIconOnly && isSidebarHovering))"
3535
class="af-title self-center text-lightNavbarText-size font-semibold sm:text-lightNavbarText-size whitespace-nowrap dark:text-darkSidebarText text-lightSidebarText"
3636
>
37-
{{ coreStore.config?.brandName }}
37+
{{ coreStore.config?.brandName?.length > 10 ? coreStore.config.brandName.slice(0, 10) + '...' : coreStore.config?.brandName }}
3838
</span>
3939
<div v-if="!isSidebarIconOnly || (isSidebarIconOnly && isSidebarHovering)" class="flex items-center gap-2 w-auto" :class="{'w-full justify-end': coreStore.config?.showBrandLogoInSidebar === false}">
4040
<component

0 commit comments

Comments
 (0)