Skip to content

Commit 736b29a

Browse files
AstaldosPetr Kachanovsky
andauthored
fix: add ellipsis to menu item if label is too long (#79)
Co-authored-by: Petr Kachanovsky <pkachanovsky@devforth.io>
1 parent da3a235 commit 736b29a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/spa/src/components/MenuLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}"
1212
>
1313
<component v-if="item.icon" :is="getIcon(item.icon)" class="w-5 h-5 text-lightSidebarIcons dark:text-darkSidebarIcons transition duration-75 group-hover:text-lightSidebarIconsHover dark:group-hover:text-darkSidebarIconsHover" ></component>
14-
<span class="ms-3">{{ item.label }}</span>
14+
<span class="text-ellipsis overflow-hidden ms-3">{{ item.label }}</span>
1515
<span v-if="item.badge" class="inline-flex items-center justify-center h-3 py-3 px-1 ms-3 text-sm font-medium rounded-full bg-lightAnnouncementBG dark:bg-darkAnnouncementBG
1616
fill-lightAnnouncementText dark:fill-darkAccent text-lightAnnouncementText dark:text-darkAccent min-w-[1.5rem] max-w-[3rem]"
1717
>

0 commit comments

Comments
 (0)