From 8cb903fbbb6de5decb443af1481b44b5c1a426d1 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 25 Jan 2017 07:10:52 -0500 Subject: 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). --- public/css/gogs.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'public/css') 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; -- cgit v1.2.3