Skip to content
代码片段 群组 项目
未验证 提交 bb7ab192 编辑于 作者: Phil Hughes's avatar Phil Hughes
浏览文件

Fixes commit diff expansion

Fixes a bug where diff expansion on commits was incorrectly rendering the expanded
section of the diff. This was caused by an extra element added in for the old
rendering instead of just the rapid diffs rendering.
上级 f08db90e
No related branches found
No related tags found
无相关合并请求
......@@ -72,7 +72,7 @@ def diff_match_line(old_pos, new_pos, text: '', view: :inline, bottom: false)
spinner = render(Pajamas::SpinnerComponent.new(size: :sm, class: 'gl-display-none gl-text-align-right', data: { visible_when_loading: true }))
expand_html = content_tag(:div, [expand_button, spinner].join.html_safe, data: { expand_wrapper: true })
else
expand_html = content_tag(:div, '...', data: { visible_when_loading: false, **expand_data })
expand_html = '...'
end
if old_pos
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册