diff options
author | Unknwon <u@gogs.io> | 2017-01-25 07:10:52 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-01-25 07:10:52 -0500 |
commit | 8cb903fbbb6de5decb443af1481b44b5c1a426d1 (patch) | |
tree | 78c577d42471344c06a876609c5766689f3758c1 /public | |
parent | d1c327d508e5d3c1ad9237ccf7c7d5b6cc21be8a (diff) |
Fix unexpected rendering of README when it is not in Markdown
This patch also handles case when a file name looks like README
but is not a text file (e.g. image, PDF).
Diffstat (limited to 'public')
-rw-r--r-- | public/config.codekit | 14 | ||||
-rw-r--r-- | public/css/gogs.css | 6 | ||||
-rw-r--r-- | public/less/_repository.less | 6 |
3 files changed, 17 insertions, 9 deletions
diff --git a/public/config.codekit b/public/config.codekit index c37b2115..b4548fd8 100644 --- a/public/config.codekit +++ b/public/config.codekit @@ -20,11 +20,11 @@ "outputPathIsOutsideProject": 0, "outputPathIsSetByUser": 0 }, - "\/css\/semantic-2.2.1.min.css": { + "\/css\/semantic-2.2.7.min.css": { "fileType": 16, - "ignore": 0, - "ignoreWasSetByUser": 0, - "inputAbbreviatedPath": "\/css\/semantic-2.2.1.min.css", + "ignore": 1, + "ignoreWasSetByUser": 1, + "inputAbbreviatedPath": "\/css\/semantic-2.2.7.min.css", "outputAbbreviatedPath": "No Output Path", "outputPathIsOutsideProject": 0, "outputPathIsSetByUser": 0 @@ -150,12 +150,12 @@ "outputStyle": 1, "syntaxCheckerStyle": 1 }, - "\/js\/semantic-2.2.1.min.js": { + "\/js\/semantic-2.2.7.min.js": { "fileType": 64, "ignore": 1, "ignoreWasSetByUser": 1, - "inputAbbreviatedPath": "\/js\/semantic-2.2.1.min.js", - "outputAbbreviatedPath": "\/js\/min\/semantic-2.2.1.min-min.js", + "inputAbbreviatedPath": "\/js\/semantic-2.2.7.min.js", + "outputAbbreviatedPath": "\/js\/min\/semantic-2.2.7.min-min.js", "outputPathIsOutsideProject": 0, "outputPathIsSetByUser": 0, "outputStyle": 1, diff --git a/public/css/gogs.css b/public/css/gogs.css index 3832c30f..ab8c6569 100644 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -1303,7 +1303,11 @@ footer .ui.language .menu { max-width: 100%; } .repository.file.list #file-content .view-raw img { - padding: 5px 5px 0 5px; + margin-bottom: -5px; +} +.repository.file.list #file-content .plain-text { + font-size: 14px; + padding: 10px 15px; } .repository.file.list #file-content .code-view * { font-size: 12px; diff --git a/public/less/_repository.less b/public/less/_repository.less index 9f51ebc4..366c92c4 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -247,10 +247,14 @@ max-width: 100%; } img { - padding: 5px 5px 0 5px; + margin-bottom: -5px; } } + .plain-text { + font-size: 14px; + padding: 10px 15px; + } .code-view { * { font-size: 12px; |