Skip to content

Commit

Permalink
Wrap displayed shortlink URLs so that buttons are still shown
Browse files Browse the repository at this point in the history
  • Loading branch information
jvperrin committed Sep 8, 2020
1 parent 3a02446 commit 738887d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/assets/stylesheets/main.css.erb
Expand Up @@ -91,6 +91,7 @@ tr.even { background-color: #f9f9f9; }
tr.odd { background-color: #fff; }

td { border: 1px dashed #ddd; padding: 2px 4px; }
td.break-word { word-break: break-word; }
.infodiv { width: 300px; text-align: left; }
.two-column { width: 45%; float: left; }
.right-column { float: right; }
Expand Down
2 changes: 1 addition & 1 deletion app/views/shortlinks/index.html.haml
Expand Up @@ -17,7 +17,7 @@
- @shortlinks.each do |shortlink|
%tr
%td= shortlink.in_url
%td= shortlink.out_url
%td{class: "break-word"}= shortlink.out_url
%td= link_to shortlink.person.full_name, shortlink.person
%td= link_to 'Edit', edit_shortlink_path(shortlink) if shortlink.own?(@current_user, @auth)
%td= link_to 'Destroy', shortlink, method: :delete, data: { confirm: 'Are you sure?' } if shortlink.own?(@current_user, @auth)
Expand Down

0 comments on commit 738887d

Please sign in to comment.