mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-29 07:52:50 +00:00
fix: Optimize style
This commit is contained in:
parent
d8b3fd74b0
commit
c785dfa47b
|
|
@ -624,10 +624,6 @@ defineExpose({ open })
|
|||
@media only screen and (max-width: 768px) {
|
||||
.execution-details-dialog {
|
||||
width: 90% !important;
|
||||
|
||||
.footer-content {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -79,9 +79,7 @@ defineExpose({ open })
|
|||
@media only screen and (max-width: 768px) {
|
||||
.paragraph-source {
|
||||
width: 90% !important;
|
||||
.footer-content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
</template>
|
||||
<template #footer>
|
||||
<div class="footer-content flex-between">
|
||||
<el-text class="flex align-center" style="width: 50%">
|
||||
<el-text class="flex align-center item">
|
||||
<img :src="getImgUrl(data?.document_name?.trim())" alt="" width="20" class="mr-4" />
|
||||
|
||||
<template v-if="meta?.source_url">
|
||||
|
|
@ -28,24 +28,24 @@
|
|||
: meta?.source_url
|
||||
"
|
||||
target="_blank"
|
||||
class="ellipsis"
|
||||
class="ellipsis-1"
|
||||
:title="data?.document_name?.trim()"
|
||||
>
|
||||
{{ data?.document_name?.trim() }}
|
||||
</a>
|
||||
</template>
|
||||
<template v-else>
|
||||
<span class="ellipsis" :title="data?.document_name?.trim()">
|
||||
<span class="ellipsis-1" :title="data?.document_name?.trim()">
|
||||
{{ data?.document_name?.trim() }}
|
||||
</span>
|
||||
</template>
|
||||
</el-text>
|
||||
<div class="flex align-center" style="line-height: 32px">
|
||||
<div class="flex align-center item" style="line-height: 32px">
|
||||
<AppAvatar class="mr-8 avatar-blue" shape="square" :size="18">
|
||||
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />
|
||||
</AppAvatar>
|
||||
|
||||
<span class="ellipsis" :title="data?.dataset_name"> {{ data?.dataset_name }}</span>
|
||||
<span class="ellipsis-1" :title="data?.dataset_name"> {{ data?.dataset_name }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -77,6 +77,13 @@ const parsedMeta = computed(() => {
|
|||
const meta = computed(() => (isMetaObject.value ? props.data.meta : parsedMeta.value))
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.paragraph-source-card {
|
||||
.footer-content {
|
||||
.item {
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
.paragraph-source-card-height {
|
||||
height: 260px;
|
||||
}
|
||||
|
|
@ -85,5 +92,13 @@ const meta = computed(() => (isMetaObject.value ? props.data.meta : parsedMeta.v
|
|||
.paragraph-source-card-height {
|
||||
height: 285px;
|
||||
}
|
||||
.paragraph-source-card {
|
||||
.footer-content {
|
||||
display: block;
|
||||
.item {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue