diff --git a/app/views/console/database/document.phtml b/app/views/console/database/document.phtml index cced69ff15..38c8ce08fd 100644 --- a/app/views/console/database/document.phtml +++ b/app/views/console/database/document.phtml @@ -20,7 +20,7 @@ $collections = []; $key = (isset($rule['key'])) ? $rule['key'] : ''; $label = (isset($rule['label'])) ? $rule['label'] : ''; $type = (isset($rule['type'])) ? $rule['type'] : ''; - $list = (isset($rule['list'])) ? $rule['list'] : []; + $list = (isset($rule['list']) && !empty($list)) ? $rule['list'] : []; ?> getId()) { @@ -51,7 +51,7 @@ $collections = []; $key = (isset($rule['key'])) ? $rule['key'] : ''; $label = (isset($rule['label'])) ? $rule['label'] : ''; $type = (isset($rule['type'])) ? $rule['type'] : ''; - $list = (isset($rule['list'])) ? $rule['list'] : false; + $list = (isset($rule['list'])) ? $rule['list'] : []; $array = (isset($rule['array'])) ? $rule['array'] : false; ?> diff --git a/public/styles/typography.less b/public/styles/typography.less index 544d86226e..58e77b2b79 100644 --- a/public/styles/typography.less +++ b/public/styles/typography.less @@ -238,3 +238,11 @@ small { .icon-dot-3:before { .func-rotate(90deg); } + +// fix icons vertical alignment +i[class^='icon-'], i[class*=' icon-']{ + &:before { + display: inline; + line-height: unset; + } +}