Skip to content

Commit

Permalink
fix: Breadcrumb on long page title isn't applied in Navigation portle…
Browse files Browse the repository at this point in the history
…t with Breadcrumb style - EXO-75273 - Meeds-io/meeds#2570. (#4179)
  • Loading branch information
akhanfir authored Nov 11, 2024
2 parents b1848e3 + 5a730a9 commit f2bb999
Showing 1 changed file with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,50 @@
<div
v-if="breadcrumbToDisplay.length"
id="breadcrumbParent"
class="px-2 py-2 application-body d-flex">
class="px-2 application-body d-flex">
<div
v-for="(breadcrumb, index) in breadcrumbToDisplay"
:key="index"
:class="breadcrumbToDisplay.length === 1 && 'single-path-element' || ''"
class="text-truncate text-body-1">
class="text-truncate text-body-1 d-flex">
<v-tooltip
v-if="breadcrumb.label != ellipsis"
max-width="300"
bottom>
<template #activator="{ on, attrs }">
<div
class="text-truncate d-inline not-clickable"
class="text-truncate d-inline"
v-bind="attrs"
v-on="on">
<v-btn
<v-card
:href="breadcrumb.uri"
:target="breadcrumb.target === 'SAME_TAB' && '_self' || '_blank'"
:disabled="!breadcrumb.uri"
:class="!breadcrumb.uri && 'text-subtitle-color'"
height="52"
min-width="45px"
max-width="250px"
class="pa-0"
text>
class="pa-0 d-flex align-center"
flat>
<span class="text-truncate text-none">
{{ breadcrumb.label }}
</span>
</v-btn>
</v-card>
</div>
</template>
<span class="caption">
{{ breadcrumb.label }}
</span>
</v-tooltip>
<v-btn
<v-card
v-else
disabled
min-width="45px"
class="pa-0 flex-shrink-1"
text>
height="52"
class="pa-0 text-subtitle-color d-flex align-center justify-center flex-shrink-1"
flat>
{{ breadcrumb.label }}
</v-btn>
</v-card>
<v-icon
v-if="index < breadcrumbToDisplay.length-1"
size="16"
Expand Down Expand Up @@ -108,4 +111,4 @@ export default {
},
}
};
</script>
</script>

0 comments on commit f2bb999

Please sign in to comment.