* Modify language and module tree style.

This commit is contained in:
caoyanyi
2023-03-24 13:43:22 +08:00
parent 852cedea13
commit 134833eaef
3 changed files with 19 additions and 18 deletions
+4 -5
View File
@@ -32,7 +32,7 @@ span.dotted-line+a {display: block;}
.doc-title ,.item{display: inline-block !important; position: relative; padding-right: 10px; max-width:80%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;}
.tree li.has-list.open:before {content: unset;}
#modules i.icon-file-text {color: #D0D2D6; font-size: 14px;}
.tree li>a {max-width: 100%;}
.tree li > a {max-width: 100%; padding: 2px;}
.sortable-sorting .module-name > a {cursor: move;}
.sortable-sorting li >.tree-group {opacity: .5;}
@@ -54,16 +54,15 @@ li.drag-shadow ul {display: none!important;}
.main-table-content > .content {flex: 1;}
/* css for mian */
#mainContent > #sideBar {flex: 0 0 150px; overflow-x: auto;}
#mainContent > #sideBar {flex: 0 0 150px; overflow-x: auto; padding-right: 5px;}
[lang^=zh] #mainContent > #sideBar {flex: 0 0 180px;}
/* css for tree */
.file-tree { padding: 10px;}
.file-tree a {height: 30px;}
.file-tree a.icon-show {padding-right: 15px;}
.file-tree a.show-icon {padding-right: 15px;}
.flex-between {display: flex; align-items: center; justify-content: space-between;}
.flex-center {display: flex; align-items: center; justify-content: center;}
.tree li>.list-toggle {top: 4px;}
.tree li > .list-toggle {top: 4px;}
.input-tree {width: 120px;}
.tree-icon {position: absolute; right: 0;}
+11 -9
View File
@@ -30,27 +30,29 @@ $(function()
$item += '<i class="icon icon-drop icon-ellipsis-v hidden tree-icon" data-isCatalogue="' + (item.type ? false : true) + '"></i>';
$item += '</div>';
$item += '</a>';
$li.append($item);
$li.addClass(libClass);
if (item.active) $li.addClass('active open in');
}
});
$('li.has-list > ul').addClass("menu-active-primary menu-hover-primary");
$('li.has-list > ul, #fileTree').addClass("menu-active-primary menu-hover-primary");
$('#fileTree').on('mousemove', 'a', function()
{
var $this = $(this);
if($this.data('type') == 'annex') return;
if($(this).data('type') == 'annex') return;
var libClass = '.libDorpdown';
if(!$this.hasClass('lib')) libClass = '.moduleDorpdown';
if(!$(this).hasClass('lib')) libClass = '.moduleDorpdown';
if($(libClass).find('li').length == 0) return false;
$this.find('.icon').removeClass('hidden');
$this.addClass('icon-show');
$(this).find('.icon').removeClass('hidden');
$(this).addClass('show-icon');
}).on('mouseout', 'a', function()
{
var $this = $(this);
$this.find('.icon').addClass('hidden');
$this.removeClass('icon-show');
$(this).find('.icon').addClass('hidden');
$(this).removeClass('show-icon');
}).on('click', 'a', function(e)
{
var isLib = $(this).hasClass('lib');
+4 -4
View File
@@ -146,11 +146,11 @@ $lang->doc->libType = '文档库类型';
$lang->doc->custom = '自定义文档库';
$lang->doc->customAB = '自定义库';
$lang->doc->createLib = '创建库';
$lang->doc->allLibs = '文档库列表';
$lang->doc->objectLibs = "文档库文档详情";
$lang->doc->allLibs = '库列表';
$lang->doc->objectLibs = "库文档详情";
$lang->doc->showFiles = '附件库';
$lang->doc->editLib = '编辑文档库';
$lang->doc->deleteLib = '删除文档库';
$lang->doc->editLib = '编辑库';
$lang->doc->deleteLib = '删除库';
$lang->doc->fixedMenu = '固定到菜单栏';
$lang->doc->removeMenu = '从菜单栏移除';
$lang->doc->search = '搜索';