style(sj_preview): 优化重试日志样式

This commit is contained in:
xlsea 2024-07-05 17:51:42 +08:00
parent af915badd9
commit 582e405dcb
3 changed files with 5 additions and 3 deletions

View File

@ -304,7 +304,7 @@ const SnailLogComponent = defineComponent({
</NDropdown>
</div>
</template>
<div class="h-full flex-center">
<div v-if="logList.length === 0" class="h-full flex-center">
<NEmpty v-if="logList.length === 0 && finished" />
<NSpin v-if="logList.length === 0 && !finished" />
</div>
@ -348,7 +348,7 @@ const SnailLogComponent = defineComponent({
</NTooltip>
</div>
</template>
<div class="h-full flex-center">
<div v-if="logList.length === 0" class="h-full flex-center">
<NEmpty v-if="logList.length === 0 && finished" />
<NSpin v-if="logList.length === 0 && !finished" />
</div>
@ -361,7 +361,7 @@ const SnailLogComponent = defineComponent({
padding: 0;
.virtual-list {
height: 100vh;
height: calc(100vh - 101px);
max-height: calc(100vh - 101px);
}

View File

@ -61,6 +61,7 @@ const visible = defineModel<boolean>('visible', {
<style scoped>
:deep(.virtual-list) {
height: calc(100vh - 166px) !important;
max-height: calc(100vh - 166px) !important;
}
</style>

View File

@ -117,6 +117,7 @@ onBeforeUnmount(() => {
<style scoped>
:deep(.virtual-list) {
height: calc(100vh - 166px) !important;
max-height: calc(100vh - 166px) !important;
}
</style>