Browse Source

overflow

for-closed-social
slene 10 years ago
parent
commit
c8790eb7d3
2 changed files with 3 additions and 2 deletions
  1. +3
    -0
      public/css/gogs.css
  2. +0
    -2
      public/js/app.js

+ 3
- 0
public/css/gogs.css View File

@ -647,6 +647,9 @@ html, body {
padding: 30px 30px 50px; padding: 30px 30px 50px;
border: none; border: none;
background-color: #FFF; background-color: #FFF;
overflow: auto;
overflow-x: auto;
overflow-y: hidden;
} }
.file-content .file-body pre { .file-content .file-body pre {

+ 0
- 2
public/js/app.js View File

@ -81,8 +81,6 @@ var Gogits = {
var last; var last;
$(document).on('click', '.lines-num span', function(){ $(document).on('click', '.lines-num span', function(){
var $e = $(this); var $e = $(this);
console.log($e.parent().siblings('.lines-code').find('ol.linenums > ' + $e.attr('rel')));
console.log('ol.linenums > ' + $e.attr('rel'));
if(last){ if(last){
last.removeClass('active'); last.removeClass('active');
} }

Loading…
Cancel
Save