Skip to content

Commit

Permalink
Add a small hysteresis threshold for annotation quotes
Browse files Browse the repository at this point in the history
If an annotation quote requires 2 or 3 lines of text, it will
not be truncated, otherwise it will be truncated to 2 lines.
  • Loading branch information
robertknight committed Jan 14, 2016
1 parent 6274226 commit 38c40c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion h/templates/client/annotation.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
ng-if="vm.hasQuotes()">
<excerpt enabled="vm.feature('truncate_annotations')"
collapsed-height="40"
inline-controls="true">
inline-controls="true"
overflow-hysteresis="20">
<blockquote class="annotation-quote"
ng-bind-html="selector.exact"
ng-repeat="selector in target.selector
Expand Down

0 comments on commit 38c40c3

Please sign in to comment.