From 1e4b9124a96101a7fcd1fa601e3a21d5fef877b5 Mon Sep 17 00:00:00 2001
From: hufangzhou <746775970@qq.com>
Date: Thu, 11 Mar 2021 16:18:03 +0800
Subject: [PATCH] * Adjust the divider style.
---
module/custom/css/common.css | 1 +
module/custom/view/header.html.php | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/module/custom/css/common.css b/module/custom/css/common.css
index 7c70d37c02..3c3233d59e 100644
--- a/module/custom/css/common.css
+++ b/module/custom/css/common.css
@@ -1 +1,2 @@
.alert-block {border-top: 1px solid #ddd;}
+.btn-toolbar.pull-left .divider {margin-left: 0px; border-color: rgba(0,0,0,.2);}
diff --git a/module/custom/view/header.html.php b/module/custom/view/header.html.php
index 6d42524884..096d1baaaa 100644
--- a/module/custom/view/header.html.php
+++ b/module/custom/view/header.html.php
@@ -4,7 +4,7 @@
custom->object as $object => $name)
{
- if(strpos('story|todo|block', $object) !== false) echo "";
+ if(strpos('story|todo|block', $object) !== false and count($lang->custom->object) > 1) echo "";
if(strpos('execution|product', $object) !== false) common::printLink('custom', $object, "", "{$lang->custom->$object}", '', "class='btn btn-link' id='{$object}Tab'");
if(strpos('execution|product', $object) === false) common::printLink('custom', 'set', "module=$object&field=" . key($lang->custom->{$object}->fields), "{$name}", '', "class='btn btn-link' id='{$object}Tab'");
}