Skip to content

Commit

Permalink
feat(breadcrumb): add line-clamp for item labels
Browse files Browse the repository at this point in the history
RISDEV-0000
  • Loading branch information
hamo225 committed Oct 22, 2024
1 parent a50e25a commit 00b68eb
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/primevue/breadcrumb/breadcrumb.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,19 @@ export const Default: Story = {
:to="item.route"
custom
>
<a :href="href" v-bind="props.action" @click="navigate">
<span v-if="item.type === 'home'">
<a
:href="href"
v-bind="props.action"
@click="navigate"
class="line-clamp-1"
>
<template v-if="item.type === 'home'">
<HomeOutlineIcon />
</span>
<span v-else> {{ item.label }} </span>
</template>
<template v-else> {{ item.label }} </template>
</a>
</router-link>
<span v-else>{{ item.label }}</span>
<span v-else class="line-clamp-1">{{ item.label }}</span>
</template>
<template #separator>
<ChevronRightIcon />
Expand Down

0 comments on commit 00b68eb

Please sign in to comment.