diff --git a/module/repo/css/common.ui.css b/module/repo/css/common.ui.css index c5c04a1701..052e3bec92 100644 --- a/module/repo/css/common.ui.css +++ b/module/repo/css/common.ui.css @@ -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;} diff --git a/module/repo/js/monaco.ui.js b/module/repo/js/monaco.ui.js index bc4fc07733..f0e16ef809 100644 --- a/module/repo/js/monaco.ui.js +++ b/module/repo/js/monaco.ui.js @@ -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; diff --git a/module/repo/ui/diffeditor.html.php b/module/repo/ui/diffeditor.html.php index 6935cb5bb8..3a997527ef 100644 --- a/module/repo/ui/diffeditor.html.php +++ b/module/repo/ui/diffeditor.html.php @@ -80,7 +80,7 @@ div( sidebar ( set::side('left'), - setClass('repo-sidebar canvas'), + setClass('repo-sidebar canvas p-2'), treeEditor ( set::id('monacoTree'), diff --git a/module/repo/ui/monaco.html.php b/module/repo/ui/monaco.html.php index b4290caaa7..6820c0b7ef 100644 --- a/module/repo/ui/monaco.html.php +++ b/module/repo/ui/monaco.html.php @@ -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'),