* Adjust repo tree style.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
.btn-left, .btn-right {display: none;}
|
||||
#linkObject{display: none;}
|
||||
#related .btn-right, #related .btn-left {padding-top: 6px;}
|
||||
#monacoTree .tree-item-content span {cursor: pointer;}
|
||||
.tree-item, .listitem, .item-content {cursor: pointer;}
|
||||
.directory {background-image:url('theme/default/images/repo/dir.png');}
|
||||
.file {background-image:url('theme/default/images/repo/txt.png');}
|
||||
.mini-icon {display: inline-block; height: 16px; width: 16px; background-color: transparent; background-position: 0 0; background-repeat: no-repeat; vertical-align: text-bottom; margin-right: 5px;}
|
||||
@@ -72,4 +72,4 @@
|
||||
#log .action-btn .caret {display: none;}
|
||||
#fileTabs .monaco-dropmenu .caret {display: none;}
|
||||
#monacoTabs .gap-x-5 {-moz-column-gap: 0; column-gap: 0;}
|
||||
#log .action-btn .btn {padding-left: .25rem; padding-right: .25rem;}
|
||||
#log .action-btn .btn {padding-left: .25rem; padding-right: .25rem;}
|
||||
|
||||
@@ -204,11 +204,11 @@ window.afterPageUpdate = function()
|
||||
$('#monacoTree').css('height', getSidebarHeight() - 8 + 'px');
|
||||
/* Init tab template. */
|
||||
if(!tabTemp) tabTemp = $('#monacoTabs ul li').first().clone();
|
||||
|
||||
|
||||
/* Load default tab content. */
|
||||
var height = getIframeHeight();
|
||||
$('#tab-' + fileAsId).html("<iframe class='repo-iframe' src='" + $.createLink('repo', 'ajaxGetDiffEditorContent', urlParams.replace('%s', fileAsId)) + "' width='100%' height='" + height + "' scrolling='no'></iframe>")
|
||||
|
||||
|
||||
/* Select default tree item. */
|
||||
const currentElement = findItemInTreeItems(tree, fileAsId, 0);
|
||||
if(currentElement != undefined) $('#' + currentElement.id).parent().addClass('selected');
|
||||
@@ -409,4 +409,4 @@ window.loadLinkPage = function(link)
|
||||
{
|
||||
$('#linkObject').attr('href', link);
|
||||
$('#linkObject').trigger('click');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
.directory {background-image:url('theme/default/images/repo/dir.png');}
|
||||
.file {background-image:url('theme/default/images/repo/txt.png');}
|
||||
.mini-icon {display: inline-block; height: 16px; width: 16px; background-color: transparent; background-position: 0 0; background-repeat: no-repeat; vertical-align: text-bottom; margin-right: 5px;}
|
||||
#monacoTree .tree-item-content {cursor: pointer;}
|
||||
.tree-item, .listitem, .item-content {cursor: pointer;}
|
||||
.sync-content {margin: 10px}
|
||||
.sync-main-content {padding: 20px;background-color: #fff;border-radius: 4px;}
|
||||
.sync-line {border-top: 1px solid #e4e4e4; margin: 10px 0;}
|
||||
|
||||
Reference in New Issue
Block a user