feat: 收口移动端侧栏与创作拆解页布局
This commit is contained in:
1 parent
c483b1912e
commit
542ec296c7
12 files changed
+250
-49
No files matched your search
@@ -9,6 +9,10 @@ import WorkflowDiagnosticsDialog from './WorkflowDiagnosticsDialog.vue'
|
||||
|
||||
/** 时间线只说明 checkpoint 已保存,不把每条记录误标为工作流成功。 */
|
||||
const props = defineProps<{ checkpoints: Checkpoint[]; workflow: string; projectId?: string }>()
|
||||
const emit = defineEmits<{
|
||||
/** 关闭覆盖层中的执行记录 */
|
||||
close: []
|
||||
}>()
|
||||
const diagnosticsOpen = ref(false)
|
||||
const history = computed(() => workflowCheckpoints(props.checkpoints, props.workflow).slice(-18).toReversed())
|
||||
</script>
|
||||
@@ -16,7 +20,10 @@ const history = computed(() => workflowCheckpoints(props.checkpoints, props.work
|
||||
<template>
|
||||
<aside class="history-panel">
|
||||
<NScrollbar class="panel-scroll" content-class="history-content">
|
||||
<h3 class="mb-1 flex items-center gap-2 text-sm font-semibold"><Clock3 :size="15" />执行记录</h3>
|
||||
<div class="history-heading">
|
||||
<h3 class="mb-1 flex items-center gap-2 text-sm font-semibold"><Clock3 :size="15" />执行记录</h3>
|
||||
<NButton class="history-close" text size="small" @click="emit('close')">关闭</NButton>
|
||||
</div>
|
||||
<p class="mb-6 text-xs leading-5 text-muted">最近 18 个 checkpoint · 自动刷新</p>
|
||||
<NButton v-if="projectId" text size="small" class="mb-4" @click="diagnosticsOpen = true"
|
||||
>查看完整运行诊断</NButton
|
||||
@@ -72,9 +79,18 @@ const history = computed(() => workflowCheckpoints(props.checkpoints, props.work
|
||||
.history-content {
|
||||
@apply py-[23px] px-[21px];
|
||||
}
|
||||
@media (max-width: 760px) {
|
||||
.history-heading {
|
||||
@apply flex items-start justify-between gap-3;
|
||||
}
|
||||
.history-close {
|
||||
@apply hidden;
|
||||
}
|
||||
@media (max-width: 800px) {
|
||||
.history-panel {
|
||||
@apply overflow-hidden min-h-0;
|
||||
@apply overflow-hidden min-h-0 bg-(--app-subtle);
|
||||
}
|
||||
.history-close {
|
||||
@apply inline-flex shrink-0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user