Skip to content

Commit

Permalink
Limit username text length in masthead
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Jun 28, 2024
1 parent 8d20256 commit 9766387
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/components/Masthead/MastheadDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import { BDropdownItem, BNavItemDropdown, VBTooltipPlugin } from "bootstrap-vue";
import Vue, { ref } from "vue";
import TextShort from "@/components/Common/TextShort.vue";
Vue.use(VBTooltipPlugin);
const dropdown = ref(null);
Expand Down Expand Up @@ -34,7 +36,7 @@ defineProps({
<template v-if="icon" v-slot:button-content>
<span class="sr-only">{{ tooltip || id }}</span>
<span class="fa fa-fw" :class="icon" />
<span>{{ title }}</span>
<TextShort :text="title" />
</template>
<template>
<BDropdownItem v-for="(item, idx) in menu" :key="idx" role="menuitem" @click="item.handler">
Expand Down

0 comments on commit 9766387

Please sign in to comment.