Skip to content

Commit

Permalink
Merge pull request eurucamp#66 from isleofruby/feature/css-elipsis
Browse files Browse the repository at this point in the history
Truncate long activity titles w/ellipsis using CSS
  • Loading branch information
myabc authored Sep 6, 2018
2 parents c0b66d1 + 874cf13 commit 65e02e5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
1 change: 0 additions & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
//= require jquery_ujs
//= require jquery.easing.min
//= require jquery.progress
//= require jquery.dotdotdot.min
//= require pickadate/picker
//= require pickadate/picker.date
//= require pickadate/picker.time
Expand Down
3 changes: 0 additions & 3 deletions app/assets/javascripts/initializers.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ ready = ->
$(document).ajaxError (e, xhr) ->
window.location.replace(App.paths.login) if xhr.status == 401

$('#activities .labels h4').dotdotdot
height: 55

# hide validation errors on focus
$('input.validation-error').on 'focus', ->
$(@).next('span.validation-error-message').fadeOut()
Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/partials/activities/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ a#new-activity {
margin: 0;
padding: 0 0.727272em;

overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;

@extend %transition-all-15s-ease-out;

@extend %ornamental-divider-before;
Expand Down
15 changes: 0 additions & 15 deletions vendor/assets/javascripts/jquery.dotdotdot.min.js

This file was deleted.

0 comments on commit 65e02e5

Please sign in to comment.