Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Fix breadcrumb component ellipsis #630

Merged
merged 1 commit into from
Feb 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/elements/OcBreadcrumb.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
*
* - text: mandatory element, holds the text which is to be displayed in the breadcrumb
* - to: optional element, the vue router link
* -
*
*/
export default {
name: "oc-breadcrumb",
Expand Down Expand Up @@ -80,7 +80,9 @@ export default {
<docs>
```vue
<template>
<oc-breadcrumb :items="items" home></oc-breadcrumb>
<section>
<oc-breadcrumb :items="items" home></oc-breadcrumb>
</section>
</template>
<script>
export default {
Expand All @@ -90,7 +92,7 @@ export default {
{text:'First folder',to:{path:'folder'}},
{text:'Subfolder', onClick:() => alert('Breadcrumb clicked!')},
{text:'Deep',to:{path:'folder'}},
{text:'Deeper'},
{text:'Deeper ellipsize in responsive mode'},
]
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/styles/theme/oc-breadcrumb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// ========================================================================

.oc-breadcrumb {
@extend .uk-overflow-hidden;

&-list {
@extend .uk-visible\@s;
@extend .uk-breadcrumb;
Expand Down