File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
contentcuration/contentcuration/frontend/shared/views Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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 ) {
You can’t perform that action at this time.
0 commit comments