Skip to content

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

chore: update `truncate` for text field with long database name (#2573)

boojack2badb8b174f1
diff --git a/frontend/src/components/Issue/IssueHighlightPanel.vue b/frontend/src/components/Issue/IssueHighlightPanel.vue
index 6a3819ba96..41df313a40 100644
--- a/frontend/src/components/Issue/IssueHighlightPanel.vue
+++ b/frontend/src/components/Issue/IssueHighlightPanel.vue
@@ -11,7 +11,7 @@
/>
</div>
<BBTextField
- class="ml-2 my-0.5 w-full text-lg font-bold"
+ class="ml-2 my-0.5 w-full text-lg font-bold truncate"
:disabled="!allowEditNameAndDescription"
:required="true"
:focus-on-mount="create"
diff --git a/frontend/src/components/Issue/IssueSidebar.vue b/frontend/src/components/Issue/IssueSidebar.vue
index 3bcea37374..7bd909ad28 100644
--- a/frontend/src/components/Issue/IssueSidebar.vue
+++ b/frontend/src/components/Issue/IssueSidebar.vue
@@ -155,7 +155,7 @@
{{ $t("common.database") }}
</h2>
<div
- class="col-span-2 text-sm font-medium text-main"
+ class="col-span-2 text-sm font-medium text-main truncate"
:class="isDatabaseCreated ? 'cursor-pointer hover:underline' : ''"
@click.prevent="
{
@@ -166,6 +166,7 @@
"
>
{{ databaseName }}
+ <br />
<span class="text-control-light">{{
showDatabaseCreationLabel
}}</span>
diff --git a/frontend/src/components/Issue/IssueTable.vue b/frontend/src/components/Issue/IssueTable.vue
index c3b42a2f3a..cb7d352b0a 100644
--- a/frontend/src/components/Issue/IssueTable.vue
+++ b/frontend/src/components/Issue/IssueTable.vue
@@ -89,7 +89,7 @@
<BBTableCell class="table-cell">
<div class="flex items-center">
<div class="mr-2 text-control">#{{ issue.id }}</div>
- <div class="whitespace-pre-wrap">{{ issue.name }}</div>
+ <div class="truncate">{{ issue.name }}</div>
</div>
</BBTableCell>
<BBTableCell class="table-cell">
diff --git a/frontend/src/components/Issue/PipelineStageList.vue b/frontend/src/components/Issue/PipelineStageList.vue
index 38c26ee8c2..91234d1e46 100644
--- a/frontend/src/components/Issue/PipelineStageList.vue
+++ b/frontend/src/components/Issue/PipelineStageList.vue
@@ -1,5 +1,5 @@
<template>
- <div class="lg:flex divide-y lg:divide-y-0">
+ <div class="max-w-full lg:flex divide-y lg:divide-y-0">
<div
v-for="(stage, i) in issue.pipeline?.stageList"
:key="i"
@@ -16,7 +16,7 @@
<span class="text-sm min-w-32 lg:text-xs lg:min-w-fit">{{
stage.name
}}</span>
- <span class="text-sm flex-1 ml-4 lg:ml-0">
+ <span class="text-sm flex-1 ml-4 lg:ml-0 whitespace-pre-wrap break-all">
<slot name="task-name-of-stage" :stage="stage" :index="i" />
</span>
</div>
@@ -118,7 +118,7 @@ const onClickStage = (stage: Stage | StageCreate, index: number) => {
};
</script>
-<style scoped lang="postcss">
+<style scoped>
.stage-item {
@apply cursor-default flex items-center justify-start w-full px-4 py-2 text-sm font-medium relative;
@apply lg:w-auto lg:flex-1;