Skip to content

Commit

Permalink
fix(PagePicker): Increase maximum breadcrumb width
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Oct 26, 2023
1 parent ecb393c commit fa4f204
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/components/Page/PagePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</NcButton>
</div>
<template v-if="selectedCollective">
<div class="crumbs-collective">
<div class="crumbs-level">
<ChevronRightIcon :size="20" />
<NcButton type="tertiary"
:aria-label="t('collectives', 'Breadcrumb for collective {name}', { name: selectedCollective.name })"
Expand Down Expand Up @@ -410,30 +410,26 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
flex: 0 0 auto;
max-width: 200px;
max-width: 300px;
.crumb-button {
color: var(--color-text-maxcontrast);
}
&:hover {
opacity: 1;
}
&.crumbs-home {
flex-shrink: 0;
}
&.crumbs-level {
display: inline-flex;
min-width: 0;
flex-shrink: 1;
min-width: 65px;
&:last-child {
flex-shrink: 0;
}
}
&:last-child {
flex-shrink: 0;
.crumb-button {
color: var(--color-main-text);
}
Expand Down

0 comments on commit fa4f204

Please sign in to comment.