Skip to content

Commit

Permalink
update trancate text to not be hidden but scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Nov 28, 2023
1 parent 40773f4 commit b595898
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/assets/stylesheets/bioportal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ body{

}

.text-truncate-scroll{
overflow: scroll;
white-space: nowrap;
}


.bg-warning-light{
background-color: var(--bg-warning-light-color) !important;
}
Expand Down
2 changes: 1 addition & 1 deletion app/components/layout/horizontal_list_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def call
content_tag(:div, class: 'd-flex flex-wrap align-items-center') do
out = ''
elements.each do |element|
out = out + content_tag(:div, element, class: 'mr-1 mb-1 text-truncate overflow-hidden')
out = out + content_tag(:div, element, class: 'mr-1 mb-1 text-truncate-scroll')
end
raw out
end
Expand Down

0 comments on commit b595898

Please sign in to comment.