@gitlab/ui 114.1.1 → 114.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -90,23 +90,11 @@ var script = {
|
|
|
90
90
|
opacity: 0
|
|
91
91
|
};
|
|
92
92
|
},
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* If the last/only item, which is always visible, has a very long title,
|
|
96
|
-
* it could overflow the breadcrumb component. This CSS makes sure it
|
|
97
|
-
* shows an ellipsis instead.
|
|
98
|
-
* But this CSS cannot be active while we do the size calculation, as that
|
|
99
|
-
* would then not take the real unshrunk width of that item into account.
|
|
100
|
-
*/
|
|
93
|
+
itemClass() {
|
|
101
94
|
if (this.resizeDone && this.fittingItems.length === 1) {
|
|
102
|
-
return
|
|
103
|
-
'flex-shrink': 1,
|
|
104
|
-
'text-overflow': 'ellipsis',
|
|
105
|
-
'overflow-x': 'hidden',
|
|
106
|
-
'text-wrap': 'nowrap'
|
|
107
|
-
};
|
|
95
|
+
return 'gl-breadcrumb-only-item';
|
|
108
96
|
}
|
|
109
|
-
return
|
|
97
|
+
return '';
|
|
110
98
|
},
|
|
111
99
|
dropdownSize() {
|
|
112
100
|
return this.size === 'sm' ? 'small' : 'medium';
|
|
@@ -214,7 +202,7 @@ var script = {
|
|
|
214
202
|
const __vue_script__ = script;
|
|
215
203
|
|
|
216
204
|
/* template */
|
|
217
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:"gl-breadcrumbs",style:(_vm.breadcrumbStyle),attrs:{"aria-label":_vm.ariaLabel}},[_c('ol',_vm._g(_vm._b({staticClass:"gl-breadcrumb-list breadcrumb"},'ol',_vm.$attrs,false),_vm.$listeners),[(_vm.hasCollapsible)?_c('li',{class:("gl-breadcrumb-item gl-breadcrumb-item-" + _vm.size)},[_c('gl-disclosure-dropdown',{attrs:{"items":_vm.overflowingItems,"toggle-text":_vm.showMoreLabel,"fluid-width":"","text-sr-only":"","no-caret":"","icon":"ellipsis_h","size":_vm.dropdownSize}})],1):_vm._e(),_vm._v(" "),_vm._l((_vm.fittingItems),function(item,index){return _c('gl-breadcrumb-item',{key:index,ref:"breadcrumbs",refInFor:true,class:_vm.hideItemClass(item),
|
|
205
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:"gl-breadcrumbs",style:(_vm.breadcrumbStyle),attrs:{"aria-label":_vm.ariaLabel}},[_c('ol',_vm._g(_vm._b({staticClass:"gl-breadcrumb-list breadcrumb"},'ol',_vm.$attrs,false),_vm.$listeners),[(_vm.hasCollapsible)?_c('li',{class:("gl-breadcrumb-item gl-breadcrumb-item-" + _vm.size)},[_c('gl-disclosure-dropdown',{attrs:{"items":_vm.overflowingItems,"toggle-text":_vm.showMoreLabel,"fluid-width":"","text-sr-only":"","no-caret":"","icon":"ellipsis_h","size":_vm.dropdownSize}})],1):_vm._e(),_vm._v(" "),_vm._l((_vm.fittingItems),function(item,index){return _c('gl-breadcrumb-item',{key:index,ref:"breadcrumbs",refInFor:true,class:[_vm.hideItemClass(item), _vm.itemClass],attrs:{"text":item.text,"href":item.href,"to":item.to,"size":_vm.size,"aria-current":_vm.getAriaCurrentAttr(index)}},[(item.avatarPath)?_c('gl-avatar',{staticClass:"gl-breadcrumb-avatar-tile gl-border gl-mr-2 !gl-rounded-base",attrs:{"src":item.avatarPath,"size":_vm.avatarSize,"aria-hidden":"true","shape":"rect","data-testid":"avatar"}}):_vm._e(),_c('span',{staticClass:"gl-align-middle"},[_vm._v(_vm._s(item.text))])],1)})],2)])};
|
|
218
206
|
var __vue_staticRenderFns__ = [];
|
|
219
207
|
|
|
220
208
|
/* style */
|