diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2017-07-06 19:01:04 +0000 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2017-07-06 19:01:04 +0000 |
commit | 46ccda86fb7e7c78b75c69d3b4c33f347f03da2b (patch) | |
tree | 9daa5972c887ae803c2bb861acb5787ed1f2952b | |
parent | 2cfc58f5050105887141a4217e1ff6d26122c010 (diff) | |
parent | c2b2f791e4dd33d1de8305aee46d5ee5750fc7e8 (diff) | |
download | gitlab-ce-46ccda86fb7e7c78b75c69d3b4c33f347f03da2b.tar.gz |
Merge branch 'acet-fix-tooltip-placement' into 'master'
Fix markdown preview tooltip cut off issue
Closes #31748
See merge request !12367
-rw-r--r-- | lib/banzai/filter/reference_filter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/banzai/filter/reference_filter.rb b/lib/banzai/filter/reference_filter.rb index 6640168bfa2..a6f8650ed3d 100644 --- a/lib/banzai/filter/reference_filter.rb +++ b/lib/banzai/filter/reference_filter.rb @@ -30,6 +30,8 @@ module Banzai attributes = attributes.reject { |_, v| v.nil? } attributes[:reference_type] ||= self.class.reference_type + attributes[:container] ||= 'body' + attributes[:placement] ||= 'bottom' attributes.delete(:original) if context[:no_original_data] attributes.map do |key, value| %Q(data-#{key.to_s.dasherize}="#{escape_once(value)}") |