Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: update task run comment view (#13171)

boojack72269af29d6e
diff --git a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vue b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vue
index b821fd6d26..5b7fbe5f95 100644
--- a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vue
+++ b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vue
@@ -1,18 +1,17 @@
<template>
- {{ comment }}
+ <NEllipsis expand-trigger="click" line-clamp="3" :tooltip="false">
+ {{ comment }}
+ </NEllipsis>
<template v-if="commentLink.link">
<template v-if="commentLink.link.startsWith('/')">
- <router-link
- class="bb-comment-link ml-1 normal-link"
- :to="commentLink.link"
- >
+ <router-link class="ml-1 inline normal-link" :to="commentLink.link">
{{ commentLink.title }}
</router-link>
</template>
<template v-else>
<a
- class="bb-comment-link ml-1 normal-link"
+ class="ml-1 inline normal-link"
:href="commentLink.link"
target="_blank"
rel="noopener noreferrer"
@@ -24,6 +23,7 @@
</template>
<script setup lang="ts">
+import { NEllipsis } from "naive-ui";
import { computed } from "vue";
import { useI18n } from "vue-i18n";
import { unknownTask, isPostgresFamily } from "@/types";
diff --git a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunTable.vue b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunTable.vue
index d9313538a9..19395a9e31 100644
--- a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunTable.vue
+++ b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunTable.vue
@@ -8,10 +8,10 @@
v-bind="$attrs"
>
<template #item="{ item: taskRun }: TaskRunGridRow">
- <div class="bb-grid-cell block">
+ <div class="bb-grid-cell">
<TaskRunStatusIcon :status="taskRun.status" />
</div>
- <div class="bb-grid-cell whitespace-pre-wrap break-words !block">
+ <div class="bb-grid-cell">
<TaskRunComment :task-run="taskRun" />
</div>
<div class="bb-grid-cell">