diff options
author | Norwin <noerw@users.noreply.github.com> | 2019-10-03 16:54:33 +0000 |
---|---|---|
committer | Antoine GIRARD <sapk@users.noreply.github.com> | 2019-10-03 18:54:33 +0200 |
commit | 9543aeaf84cae7ce3700133ff048536471c543aa (patch) | |
tree | 6fd50c19a53557975b9038b0bccd40eed9ca2d22 | |
parent | 0bda87616182ba8c43c48be9a9db10be54d8aecc (diff) | |
download | gitea-9543aeaf84cae7ce3700133ff048536471c543aa.tar.gz gitea-9543aeaf84cae7ce3700133ff048536471c543aa.zip |
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
-rw-r--r-- | public/css/index.css | 2 | ||||
-rw-r--r-- | public/less/_repository.less | 1 | ||||
-rw-r--r-- | templates/repo/view_file.tmpl | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/public/css/index.css b/public/css/index.css index 1da2399c46..294539d39f 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -505,7 +505,7 @@ footer .ui.left,footer .ui.right{line-height:40px} .repository.file.list .non-diff-file-content .view-raw img{padding:5px 5px 0 5px} .repository.file.list .non-diff-file-content .plain-text{padding:1em 2em 1em 2em} .repository.file.list .non-diff-file-content .plain-text pre{word-break:break-word;white-space:pre-wrap} -.repository.file.list .non-diff-file-content .csv{overflow-x:auto} +.repository.file.list .non-diff-file-content .csv{overflow-x:auto;padding:0!important} .repository.file.list .non-diff-file-content pre{overflow:auto} .repository.file.list .sidebar{padding-left:0} .repository.file.list .sidebar .octicon{width:16px} diff --git a/public/less/_repository.less b/public/less/_repository.less index fde11f7a4d..ade3477ccc 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -429,6 +429,7 @@ .csv { overflow-x: auto; + padding: 0 !important; } pre { diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 895a72aaee..50e4c33946 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -45,7 +45,7 @@ </div> </h4> <div class="ui attached table unstackable segment"> - <div class="file-view {{if .IsMarkup}}{{.MarkupType}}{{else if .IsRenderedHTML}}plain-text{{else if .IsTextFile}}code-view{{end}} has-emoji"> + <div class="file-view {{if .IsMarkup}}{{.MarkupType}} markdown{{else if .IsRenderedHTML}}plain-text{{else if .IsTextFile}}code-view{{end}} has-emoji"> {{if .IsMarkup}} {{if .FileContent}}{{.FileContent | Safe}}{{end}} {{else if .IsRenderedHTML}} |