Skip to content

Commit aad86b9

Browse files
authored
Fixes the breadcrumbs wrapping and overlapping the select all checkbox
* prevents breadcrumbs overlapping the select all checkbox
1 parent f30c2c2 commit aad86b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contentcuration/contentcuration/frontend/shared/views/Breadcrumbs.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@
108108
},
109109
methods: {
110110
handleOverflow() {
111-
const maxWidth = this.$refs.breadcrumbs.$el.offsetWidth;
112111
let totalWidth = 0;
113112
this.breadcrumbStartingIndex = 0;
114113
this.$nextTick(() => {
115-
if (this.$refs.breadcrumb) {
114+
if (this.$refs.breadcrumb && this.$refs.breadcrumb) {
115+
const maxWidth = this.$refs.breadcrumbs.$el.offsetWidth;
116116
for (var i = this.$refs.breadcrumb.length - 1; i >= 0; --i) {
117-
totalWidth += this.$refs.breadcrumb[i].$el.offsetWidth + 40;
117+
totalWidth += this.$refs.breadcrumb[i].$el.offsetWidth + 60;
118118
119119
// Bounds exceeded, go back to previous index
120120
if (totalWidth >= maxWidth - 48) {

0 commit comments

Comments
 (0)