diff options
author | Paul Slaughter <pslaughter@gitlab.com> | 2018-08-02 11:20:49 -0500 |
---|---|---|
committer | Paul Slaughter <pslaughter@gitlab.com> | 2018-08-03 12:32:12 -0500 |
commit | 3ca979cda29ae38480c94f9f8715ce3c3f35ef8f (patch) | |
tree | ffac564b3a6f0abf2f03261da53e09d815436f03 /app/views/projects | |
parent | 0050b3dfa2fc5aa8806ec98a2a11c4df09b935a9 (diff) | |
download | gitlab-ce-3ca979cda29ae38480c94f9f8715ce3c3f35ef8f.tar.gz |
Update commit description styles to monospace font and overflow-x
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/commit/_commit_box.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/commits/_commit.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/pipelines/_info.html.haml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/commit/_commit_box.html.haml b/app/views/projects/commit/_commit_box.html.haml index 8afbbaf378f..aab5712d197 100644 --- a/app/views/projects/commit/_commit_box.html.haml +++ b/app/views/projects/commit/_commit_box.html.haml @@ -55,7 +55,7 @@ %h3.commit-title = markdown_field(@commit, :title) - if @commit.description.present? - .commit-description< + %pre.commit-description< = preserve(markdown_field(@commit, :description)) .info-well diff --git a/app/views/projects/commits/_commit.html.haml b/app/views/projects/commits/_commit.html.haml index feaf44e8c0a..7951a5ddc9e 100644 --- a/app/views/projects/commits/_commit.html.haml +++ b/app/views/projects/commits/_commit.html.haml @@ -44,7 +44,7 @@ #{ commit_text.html_safe } - if commit.description? - %pre.commit-row-description.js-toggle-content.prepend-top-8.append-bottom-8 + %pre.commit-row-description.js-toggle-content.append-bottom-8 = preserve(markdown_field(commit, :description)) .commit-actions.flex-row.d-none.d-sm-flex diff --git a/app/views/projects/pipelines/_info.html.haml b/app/views/projects/pipelines/_info.html.haml index 78e3b209686..ccb83148ded 100644 --- a/app/views/projects/pipelines/_info.html.haml +++ b/app/views/projects/pipelines/_info.html.haml @@ -2,7 +2,7 @@ %h3.commit-title = markdown(commit.title, pipeline: :single_line) - if commit.description.present? - .commit-description< + %pre.commit-description< = preserve(markdown(commit.description, pipeline: :single_line)) .info-well |