Skip to content

Commit 9543aea

Browse files
noerwsapk
authored andcommitted
readd .markdown class to all markup renderers (#8357)
fixes #8299, a regression from 867f46f. unlike it's name suggests, the .markdown class is needed for most markup types. a future refactor should rename this class to something more generic
1 parent 0bda876 commit 9543aea

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

public/css/index.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ footer .ui.left,footer .ui.right{line-height:40px}
505505
.repository.file.list .non-diff-file-content .view-raw img{padding:5px 5px 0 5px}
506506
.repository.file.list .non-diff-file-content .plain-text{padding:1em 2em 1em 2em}
507507
.repository.file.list .non-diff-file-content .plain-text pre{word-break:break-word;white-space:pre-wrap}
508-
.repository.file.list .non-diff-file-content .csv{overflow-x:auto}
508+
.repository.file.list .non-diff-file-content .csv{overflow-x:auto;padding:0!important}
509509
.repository.file.list .non-diff-file-content pre{overflow:auto}
510510
.repository.file.list .sidebar{padding-left:0}
511511
.repository.file.list .sidebar .octicon{width:16px}

public/less/_repository.less

+1
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@
429429

430430
.csv {
431431
overflow-x: auto;
432+
padding: 0 !important;
432433
}
433434

434435
pre {

templates/repo/view_file.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</div>
4646
</h4>
4747
<div class="ui attached table unstackable segment">
48-
<div class="file-view {{if .IsMarkup}}{{.MarkupType}}{{else if .IsRenderedHTML}}plain-text{{else if .IsTextFile}}code-view{{end}} has-emoji">
48+
<div class="file-view {{if .IsMarkup}}{{.MarkupType}} markdown{{else if .IsRenderedHTML}}plain-text{{else if .IsTextFile}}code-view{{end}} has-emoji">
4949
{{if .IsMarkup}}
5050
{{if .FileContent}}{{.FileContent | Safe}}{{end}}
5151
{{else if .IsRenderedHTML}}

0 commit comments

Comments
 (0)