diff --git a/src/assets/css/components/components/advancedSearch/codemirror.scss b/src/assets/css/components/components/advancedSearch/codemirror.scss index e21dd841..2dc63c75 100644 --- a/src/assets/css/components/components/advancedSearch/codemirror.scss +++ b/src/assets/css/components/components/advancedSearch/codemirror.scss @@ -375,12 +375,16 @@ span.CodeMirror-selectedtext { background: none; } } .hint-title { - margin: 10px 10px 10px 4px; - line-height: 20px; - font-weight: bold; + margin: 10px 10px 10px 0; + height: 24px; + line-height: 24px; /* 禁止选中 样式 */ background: #fff !important; - color: #000 !important; + font-family: NotoSansHans-Medium; + font-size: 14px; + color: #333333 !important; + letter-spacing: 0; + font-weight: 500; } .cm-s-eclipse span.cm-string-2 { @@ -433,3 +437,55 @@ span.CodeMirror-selectedtext { background: none; } .cm-variable-2{ font-weight: bold; } + +.default-tips-header,.default-tips-title { + height: 24px; + line-height: 24px; + font-weight: 700; + color: #333333; + font-size: 14px; + margin: 6px 0; + font-family: NotoSansSC-Bold; + letter-spacing: 0; +} + +.default-tips-header { + font-size: 15px; +} + +.show-hint-tips__p { + word-break: keep-all; + margin: 0; + line-height: 24px; + color: #575757; + font-weight: 400; +} + +.Hint { + padding: 0; + z-index: 2; + + .hint__block { + display: flex; + flex-direction: row; + width: calc(100% - 41px); + min-height: 320px; + margin-top: 6px; + box-shadow: 0 2px 8px 0 rgba(0,0,0,.3); + z-index: 2; + + .hint__block-filter { + width: 326px; + background: #fff; + border-right: 1px solid #DEDEDE; + padding: 12px; + z-index: 2; + } + + .hint__block-helper { + width: calc(100% - 326px); + background: #fff; + z-index: 2; + } + } +} diff --git a/src/assets/css/components/views/entityExplorer/entityList/row.scss b/src/assets/css/components/views/entityExplorer/entityList/row.scss index 1b1d14c1..7186eee6 100644 --- a/src/assets/css/components/views/entityExplorer/entityList/row.scss +++ b/src/assets/css/components/views/entityExplorer/entityList/row.scss @@ -43,7 +43,7 @@ align-content: center; padding: 16px 0; margin-bottom: 1px; - background-color: white; + //background-color: white; border-radius: 0 4px 4px 0; .cn-entity__icon { diff --git a/src/components/advancedSearch/showhint/Hint/HelperInfo.vue b/src/components/advancedSearch/showhint/Hint/HelperInfo.vue index d223ddd2..cc9cae8c 100644 --- a/src/components/advancedSearch/showhint/Hint/HelperInfo.vue +++ b/src/components/advancedSearch/showhint/Hint/HelperInfo.vue @@ -15,6 +15,7 @@ import filterTips from '@/components/advancedSearch/showhint/const/filterTips.js import varTips from '@/components/advancedSearch/showhint/const/varTips.js' import { fieldRender } from '@/components/advancedSearch/showhint/const/fieldTips.js' +import { EN, storageKey, ZH } from '@/utils/constants' export default { name: 'HelperInfo', @@ -104,8 +105,12 @@ export default { return fieldRender } } + const language = localStorage.getItem(storageKey.language) || EN - return defaultTips.default.description + if (language === ZH) { + return defaultTips.zhDefault.description + } + return defaultTips.enDefault.description } } } @@ -122,7 +127,7 @@ export default { } .tips-container { - padding: 6px; + padding: 12px; } /deep/ ul li { @@ -143,9 +148,10 @@ export default { /deep/ code, .code { background: initial; - - border: 1px solid #ccc; - padding: 4px 12px; + border: 1px solid #DEDEDE; + height: 24px; + line-height: 24px; + padding: 0 12px; margin: 6px 0; display: block; } diff --git a/src/components/advancedSearch/showhint/Hint/Hint.vue b/src/components/advancedSearch/showhint/Hint/Hint.vue index 082adf9c..262e492f 100644 --- a/src/components/advancedSearch/showhint/Hint/Hint.vue +++ b/src/components/advancedSearch/showhint/Hint/Hint.vue @@ -1,19 +1,11 @@