Skip to content

Commit 1730a46

Browse files
fix: License not uploaded, knowledge base hits test interface style issue(#3852)
1 parent 7ebf173 commit 1730a46

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

ui/src/styles/element-plus.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,13 @@
287287
.el-input {
288288
--el-input-text-color: var(--el-text-color-primary);
289289
}
290+
291+
.el-input-group__prepend div.el-select .el-select__wrapper {
292+
background: #ffffff;
293+
&:hover {
294+
background: #ffffff;
295+
}
296+
.el-select__placeholder {
297+
color: var(--el-text-color-regular);
298+
}
299+
}

ui/src/views/hit-test/index.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</div>
2323
</div>
2424
<el-scrollbar>
25-
<div class="hit-test-height">
25+
<div :style="{ height: user.isExpire() ? 'calc(100vh - 340px)' : 'calc(100vh - 300px)' }">
2626
<el-empty
2727
v-if="first"
2828
:image="emptyImg"
@@ -231,6 +231,7 @@
231231
<script setup lang="ts">
232232
import { nextTick, ref, onMounted, computed } from 'vue'
233233
import { useRoute } from 'vue-router'
234+
import useStore from '@/stores'
234235
import { cloneDeep } from 'lodash'
235236
import ParagraphDialog from '@/views/paragraph/component/ParagraphDialog.vue'
236237
import { arraySort } from '@/utils/array'
@@ -241,6 +242,7 @@ const route = useRoute()
241242
const {
242243
params: { id },
243244
} = route as any
245+
const { user } = useStore()
244246
const apiType = computed(() => {
245247
if (route.path.includes('shared')) {
246248
return 'systemShare'
@@ -408,10 +410,6 @@ onMounted(() => {})
408410
position: absolute;
409411
right: calc(var(--app-base-px) * 3);
410412
}
411-
412-
.hit-test-height {
413-
height: calc(100vh - 300px);
414-
}
415413
.document-card {
416414
height: 210px;
417415
border: 1px solid var(--app-layout-bg-color);

ui/src/views/paragraph/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
</div>
161161
</LayoutContainer>
162162

163-
<div class="mul-operation border-t w-full" v-if="isBatch === true">
163+
<div class="mul-operation border-t w-full flex align-center" v-if="isBatch === true">
164164
<el-button :disabled="multipleSelection.length === 0" @click="openGenerateDialog()">
165165
{{ $t('views.document.generateQuestion.title') }}
166166
</el-button>
@@ -171,7 +171,7 @@
171171
<el-button :disabled="multipleSelection.length === 0" @click="deleteMulParagraph">
172172
{{ $t('common.delete') }}
173173
</el-button>
174-
<span class="ml-8">
174+
<span class="ml-24">
175175
{{ $t('common.selected') }} {{ multipleSelection.length }}
176176
{{ $t('views.document.items') }}
177177
</span>

0 commit comments

Comments
 (0)