Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
3ca979cd
Commit
3ca979cd
authored
Aug 02, 2018
by
Paul Slaughter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update commit description styles to monospace font and overflow-x
parent
0050b3df
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
17 deletions
+24
-17
app/assets/stylesheets/pages/commits.scss
app/assets/stylesheets/pages/commits.scss
+16
-14
app/views/projects/commit/_commit_box.html.haml
app/views/projects/commit/_commit_box.html.haml
+1
-1
app/views/projects/commits/_commit.html.haml
app/views/projects/commits/_commit.html.haml
+1
-1
app/views/projects/pipelines/_info.html.haml
app/views/projects/pipelines/_info.html.haml
+1
-1
changelogs/unreleased/47548-monospace-commit-messages.yml
changelogs/unreleased/47548-monospace-commit-messages.yml
+5
-0
No files found.
app/assets/stylesheets/pages/commits.scss
View file @
3ca979cd
.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
;
...
...
app/views/projects/commit/_commit_box.html.haml
View file @
3ca979cd
...
...
@@ -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
...
...
app/views/projects/commits/_commit.html.haml
View file @
3ca979cd
...
...
@@ -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
...
...
app/views/projects/pipelines/_info.html.haml
View file @
3ca979cd
...
...
@@ -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
...
...
changelogs/unreleased/47548-monospace-commit-messages.yml
0 → 100644
View file @
3ca979cd
---
title
:
Update commit message styles with monospace font and overflow-x
merge_request
:
20988
author
:
type
:
changed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment