* Optimize page style.

This commit is contained in:
caoyanyi
2023-04-04 11:57:29 +08:00
parent 3824aecf9e
commit 308c12095b
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -3,7 +3,10 @@
<script>$('#mainMenu #<?php echo $tab;?>').addClass('btn-active-text')</script>
<?php endif;?>
<?php if($app->rawMethod == 'api'):?>
<style>.api-tip-icon.icon-help:before {margin-top: 10px; margin-left: -14px; font-size: 12px;}</style>
<style>
.api-tip-icon.icon-help:before {margin-top: 8px; margin-left: -4px;}
[lang^=zh] .api-tip-icon.icon-help:before {margin-left: -10px;}
</style>
<div id='mainMenu' class='clearfix menu-secondary'>
<div class="btn-toolbar pull-left">
<?php
+1 -1
View File
@@ -215,7 +215,7 @@ $(function()
var $item = '<a href="' + link + '" style="position: relative" data-has-children="' + hasChild + '" title="' + item.name + '" data-id="' + item.id + '" class="' + libClass + '" data-type="' + item.type + '" data-action="' + item.hasAction + '">';
$item += '<div class="text h-full w-full flex-start overflow-hidden">';
if(libClass == 'lib' && (item.type == 'execution' && item.hasAction)) $item += '<div class="img-lib" style="background-image:url(static/svg/' + imgObj[item.type || 'lib'] + '.svg)"></div>';
if((libClass == 'lib' && item.type != 'execution') || (item.type == 'execution' && item.hasAction)) $item += '<div class="img-lib" style="background-image:url(static/svg/' + imgObj[item.type || 'lib'] + '.svg)"></div>';
$item += '<div class="tree-text">';
$item += item.name;
$item += '</div>';