* Adjust repo branch menu style.

This commit is contained in:
caoyanyi
2023-11-03 09:49:34 +08:00
parent 5719220e3c
commit 734d6b74b6
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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;}
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -80,7 +80,7 @@ div(
sidebar
(
set::side('left'),
setClass('repo-sidebar canvas'),
setClass('repo-sidebar canvas p-2'),
treeEditor
(
set::id('monacoTree'),
+1 -1
View File
@@ -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'),