From c8b45ecc2762a9d64dbe83cafd68b137661448a5 Mon Sep 17 00:00:00 2001 From: Rory McNamara Date: Tue, 9 Aug 2016 20:35:20 +0100 Subject: Render the Code view on the server (minus syntax highlighting) (#2942) * render code view server side * remove debug print * fix multiline selection bug * change string concatenation to bytes.Buffer for efficiency * Fix newlines added by previous for hljs * fix selection highlighting * make css changes in .less --- public/css/gogs.css | 2 ++ 1 file changed, 2 insertions(+) (limited to 'public/css/gogs.css') diff --git a/public/css/gogs.css b/public/css/gogs.css index ae58c7c54e..c39c52ca22 100644 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -1316,6 +1316,8 @@ footer .ui.language .menu { .repository.file.list #file-content .code-view .lines-num .hljs li, .repository.file.list #file-content .code-view .lines-code .hljs li { padding-left: 5px; + display: inline-block; + width: 100%; } .repository.file.list #file-content .code-view .lines-num pre li.active, .repository.file.list #file-content .code-view .lines-code pre li.active, -- cgit v1.2.3