Skip to content

Commit

Permalink
Bugfix: activity item menu overflow issue (closes #2772)
Browse files Browse the repository at this point in the history
  • Loading branch information
kueda committed Aug 27, 2020
1 parent 771edce commit e382ed8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/assets/stylesheets/shared/activity_item.scss
Expand Up @@ -2,6 +2,9 @@

.ActivityItem,
body > [role="dialog"] .ActivityItem {
&.comment {
overflow: inherit;
}
.identification {
display: inline-block;
width: 100%;
Expand Down Expand Up @@ -175,6 +178,9 @@ body > [role="dialog"] .ActivityItem {
img {
max-width: 100%;
}
.content {
overflow: hidden;
}
}
}
span.taxon {
Expand Down
4 changes: 3 additions & 1 deletion app/controllers/observations_controller.rb
Expand Up @@ -311,7 +311,9 @@ def show
I18n.t( "something" )
end
@shareable_description = @observation.to_plain_s( no_place_guess: !@coordinates_viewable, viewer: current_user )
@shareable_description += ".\n\n#{@observation.description}" unless @observation.description.blank?
unless @observation.description.blank?
@shareable_description += ".\n\n#{FakeView.truncate( @observation.description, length: 100 )}"
end

@skip_application_js = true
@flash_js = true
Expand Down

0 comments on commit e382ed8

Please sign in to comment.