Skip to content

Commit

Permalink
fix(DetailPage): don't add ellipsis for last breadcrumb
Browse files Browse the repository at this point in the history
  • Loading branch information
BreadGenie committed Jul 30, 2024
1 parent 9aaa764 commit 76ee562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/src2/pages/DetailPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export default {
// add ellipsis if breadcrumbs too long
for (let i = 0; i < items.length; i++) {
if (items[i].label.length > 30) {
if (items[i].label.length > 30 && i !== items.length - 1) {
items[i].label = items[i].label.slice(0, 30) + '...';
}
}
Expand Down

0 comments on commit 76ee562

Please sign in to comment.