diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 0a215c48..5886a2a7 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -355,6 +355,13 @@ $bezier: cubic-bezier(0.75, 0, 0.25, 1); .text-column-#{$size} { column-count: $size; } + + .line-clamp-#{$size} { + overflow: hidden; + display: -webkit-box; + -webkit-line-clamp: $size; + -webkit-box-orient: vertical; + } } /* diff --git a/app/views/layouts/_breadcrumb.haml b/app/views/layouts/_breadcrumb.haml index 29201b0e..c4920bc7 100644 --- a/app/views/layouts/_breadcrumb.haml +++ b/app/views/layouts/_breadcrumb.haml @@ -4,13 +4,13 @@ title: t('svg.sutty.title'), desc: t('svg.sutty.desc') %nav{ aria: { label: t('.title') } } - %ol.breadcrumb + %ol.breadcrumb.m-0.flex-wrap - breadcrumb_trail do |crumb| %li.breadcrumb-item{ class: crumb.current? ? 'active' : '' } - if crumb.current? - %span{ aria: { current: 'page' } }= crumb.name + %span.line-clamp-1{ aria: { current: 'page' } }= crumb.name - else - %span= link_to crumb.name, crumb.url + %span.line-clamp-1= link_to crumb.name, crumb.url - if current_usuarie %ul.navbar-nav