Update commit description styles to monospace font and overflow-x

This commit is contained in:
Paul Slaughter 2018-08-02 11:20:49 -05:00
parent 0050b3dfa2
commit 3ca979cda2
5 changed files with 24 additions and 17 deletions

View file

@ -1,9 +1,17 @@
.commit-description {
background: none;
%commit-description-base {
padding: 0 0 0 $gl-padding-8;
margin-top: $gl-padding-8;
border: 0;
padding: 0;
border-radius: unset;
background: none;
word-break: normal;
white-space: pre-wrap;
overflow-x: auto;
border-left: 2px solid $theme-gray-300;
color: $gl-text-color-secondary;
}
.commit-description {
@extend %commit-description-base;
}
.js-details-expand {
@ -175,6 +183,7 @@
justify-content: space-between;
align-items: start;
flex-grow: 1;
min-width: 0;
.project_namespace {
color: $gl-text-color-secondary;
@ -184,6 +193,7 @@
.commit-content {
padding-right: 10px;
white-space: normal;
overflow: hidden;
.commit-title {
display: flex;
@ -274,17 +284,9 @@
}
.commit-row-description {
font-size: 14px;
padding: 0 0 0 $gl-padding-8;
border: 0;
@extend %commit-description-base;
display: none;
white-space: pre-wrap;
word-break: normal;
color: $gl-text-color-secondary;
background: none;
font-family: inherit;
border-left: 2px solid $theme-gray-300;
border-radius: unset;
flex: 1;
a {
color: $gl-text-color;

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -0,0 +1,5 @@
---
title: Update commit message styles with monospace font and overflow-x
merge_request: 20988
author:
type: changed