Browse Source

minor JS and UI fix

pull/1234/merge
Unknwon 9 years ago
parent
commit
98e989d52c
  1. 1
      public/css/gogs.css
  2. 2
      public/js/gogs.js
  3. 2
      public/less/_repository.less

1
public/css/gogs.css

@ -2318,6 +2318,7 @@ footer .container .links > *:first-child {
} }
.repository .diff-file-box .code-diff pre { .repository .diff-file-box .code-diff pre {
margin: 0; margin: 0;
font-size: 13px;
} }
.repository .diff-file-box .code-diff .lines-num { .repository .diff-file-box .code-diff .lines-num {
border-right: 1px solid #d4d4d5; border-right: 1px solid #d4d4d5;

2
public/js/gogs.js

@ -938,7 +938,7 @@ $(window).load(function () {
} }
// Code view. // Code view.
if ($('.code-view').length > 0) { if ($('.code-view .linenums').length > 0) {
var $block = $('.code-view .linenums'); var $block = $('.code-view .linenums');
var lines = $block.html().split("\n"); var lines = $block.html().split("\n");
$block.html(''); $block.html('');

2
public/less/_repository.less

@ -676,12 +676,14 @@
} }
.code-diff { .code-diff {
font-size: 13px; font-size: 13px;
td { td {
padding: 0; padding: 0;
border-top: none; border-top: none;
} }
pre { pre {
margin: 0; margin: 0;
font-size: 13px;
} }
.lines-num { .lines-num {
border-right: 1px solid #d4d4d5; border-right: 1px solid #d4d4d5;

Loading…
Cancel
Save