* Adjust repo branch menu style.
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
.monaco-dropmenu{background: #efefef; height: 40px; line-height: 40px;}
|
||||
#fileTabs > .btn {background: #efefef; border: none; --tw-ring-shadow: none;}
|
||||
#fileTabs > .btn-right {padding-right: 40px;}
|
||||
#repoBranchDropMenu > .dropmenu-btn {background: white; --tw-ring-color: none; color: inherit; margin-bottom: 10px; background: white;}
|
||||
#repoBranchDropMenu > .dropmenu-btn {background: white; --tw-ring-color: none; color: inherit; margin-bottom: 10px;}
|
||||
.repo-select #repoBranchDropMenu > .dropmenu-btn {background: inherit; --tw-ring-color: none; color: inherit; margin-bottom: 0;}
|
||||
#repoBranchDropMenu > .dropmenu-btn > .icon-angle-right {display: none;}
|
||||
#log .action-btn .caret {display: none;}
|
||||
|
||||
@@ -50,8 +50,8 @@ window.afterPageUpdate = function()
|
||||
/* Reload current page when click dropmeu. */
|
||||
$('body').on('click', '.dropmenu-tree .dropmenu-item', function()
|
||||
{
|
||||
var branchOrTag = $(this).attr('title');
|
||||
var url = $(this).data('url');
|
||||
var branchOrTag = $(this).find('.item-content').attr('title');
|
||||
var url = $(this).find('.listitem').data('url');
|
||||
|
||||
if(url != 'javascript:;') return;
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ div(
|
||||
sidebar
|
||||
(
|
||||
set::side('left'),
|
||||
setClass('repo-sidebar canvas'),
|
||||
setClass('repo-sidebar canvas p-2'),
|
||||
treeEditor
|
||||
(
|
||||
set::id('monacoTree'),
|
||||
|
||||
@@ -91,7 +91,7 @@ div(
|
||||
helper::isAjaxRequest('modal') ? null : sidebar
|
||||
(
|
||||
set::side('left'),
|
||||
setClass('repo-sidebar canvas'),
|
||||
setClass('repo-sidebar px-2'),
|
||||
dropmenu
|
||||
(
|
||||
setID('repoBranchDropMenu'),
|
||||
|
||||
Reference in New Issue
Block a user