diff --git a/public/config.codekit b/public/config.codekit index c5f54ff8b..ebd91d95a 100644 --- a/public/config.codekit +++ b/public/config.codekit @@ -1,6 +1,6 @@ { "CodeKitInfo": "This is a CodeKit 2.x project configuration file. It is designed to sync project settings across multiple machines. MODIFYING THE CONTENTS OF THIS FILE IS A POOR LIFE DECISION. If you do so, you will likely cause CodeKit to crash. This file is not useful unless accompanied by the project that created it in CodeKit 2. This file is not backwards-compatible with CodeKit 1.x. For more information, see: http:\/\/incident57.com\/codekit", -"creatorBuild": "19127", +"creatorBuild": "19115", "files": { "\/css\/github.min.css": { "fileType": 16, @@ -66,7 +66,7 @@ "fileType": 32768, "ignore": 0, "ignoreWasSetByUser": 0, - "initialSize": 514087, + "initialSize": 4048, "inputAbbreviatedPath": "\/img\/avatar_default.png", "outputAbbreviatedPath": "\/img\/avatar_default.png", "outputPathIsOutsideProject": 0, diff --git a/public/css/gogs.css b/public/css/gogs.css index 9a273c808..7ef33c6c1 100644 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -1181,6 +1181,7 @@ footer .ui.language .menu { float: left; margin-left: -5px; margin-right: -7px; + width: 16px; } .repository .filter.menu .menu { max-height: 300px; diff --git a/public/js/gogs.js b/public/js/gogs.js index fd6a7d858..378b0bbd2 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -108,16 +108,21 @@ function initCommentForm() { }); } + // Add   to each unselected label to keep UI looks good. + // This should be added directly to HTML but somehow just get empty on this page. + $labelMenu.find('.item:not(.no-select) .octicon:not(.octicon-check)').each(function () { + $(this).html(' '); + }) $labelMenu.find('.item:not(.no-select)').click(function () { if ($(this).hasClass('checked')) { $(this).removeClass('checked'); - $(this).find('.octicon').removeClass('octicon-check'); + $(this).find('.octicon').removeClass('octicon-check').html(' '); if (hasLabelUpdateAction) { updateIssueMeta($labelMenu.data('update-url'), "detach", $(this).data('id')); } } else { $(this).addClass('checked'); - $(this).find('.octicon').addClass('octicon-check'); + $(this).find('.octicon').addClass('octicon-check').html(''); if (hasLabelUpdateAction) { updateIssueMeta($labelMenu.data('update-url'), "attach", $(this).data('id')); } @@ -147,7 +152,7 @@ function initCommentForm() { $(this).parent().find('.item').each(function () { $(this).removeClass('checked'); - $(this).find('.octicon').removeClass('octicon-check'); + $(this).find('.octicon').removeClass('octicon-check').html(' '); }); $list.find('.item').each(function () { diff --git a/public/less/_repository.less b/public/less/_repository.less index 2a9d490e1..efda68f3c 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -97,6 +97,7 @@ float: left; margin-left: -5px; margin-right: -7px; + width: 16px; } .menu { max-height: 300px; diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index e69a8413e..9aea699e9 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -33,7 +33,7 @@ diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl index ed1c718ed..bfb97da2d 100644 --- a/templates/repo/issue/new_form.tmpl +++ b/templates/repo/issue/new_form.tmpl @@ -41,7 +41,7 @@