Skip to content

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

fix: responsive issue page (#17522)

ecmadao171153b83724
diff --git a/frontend/src/components/Plan/components/IssueReviewView/IssueBaseLayout.vue b/frontend/src/components/Plan/components/IssueReviewView/IssueBaseLayout.vue
index 06565cda62..b289616dc8 100644
--- a/frontend/src/components/Plan/components/IssueReviewView/IssueBaseLayout.vue
+++ b/frontend/src/components/Plan/components/IssueReviewView/IssueBaseLayout.vue
@@ -1,7 +1,7 @@
<template>
- <div ref="containerRef" class="flex-1 flex w-full border-t -mt-px">
+ <div class="flex-1 flex w-full border-t -mt-px">
<!-- Left Panel - Activity -->
- <div class="flex-1 shrink p-4 space-y-4">
+ <div class="flex-1 shrink p-4 space-y-4 overflow-x-auto">
<slot />
<ActivitySection />
</div>
@@ -36,7 +36,7 @@
</template>
<script setup lang="ts">
-import { computed, ref, unref } from "vue";
+import { computed, unref } from "vue";
import { provideIssueContext, useBaseIssueContext } from "@/components/IssueV1";
import { Drawer } from "@/components/v2";
import { extractUserId, useCurrentProjectV1, useCurrentUserV1 } from "@/store";
@@ -51,7 +51,6 @@ import { Sidebar } from "./Sidebar";
const { project, ready } = useCurrentProjectV1();
const { plan, issue, rollout } = usePlanContextWithIssue();
const currentUser = useCurrentUserV1();
-const containerRef = ref<HTMLElement>();
const {
mode: sidebarMode,
diff --git a/frontend/src/components/Plan/components/RolloutView/TaskRunTable.vue b/frontend/src/components/Plan/components/RolloutView/TaskRunTable.vue
index d42270fdce..f29c9cb1cc 100644
--- a/frontend/src/components/Plan/components/RolloutView/TaskRunTable.vue
+++ b/frontend/src/components/Plan/components/RolloutView/TaskRunTable.vue
@@ -113,6 +113,7 @@ const columnList = computed((): DataTableColumn<TaskRun>[] => {
key: "database",
title: t("common.database"),
width: 200,
+ resizable: true,
render: (taskRun: TaskRun) => {
const db = getDatabaseForTaskRun(taskRun);
return db ? (
@@ -127,6 +128,8 @@ const columnList = computed((): DataTableColumn<TaskRun>[] => {
{
key: "detail",
title: t("common.detail"),
+ ellipsis: true,
+ resizable: true,
render: (taskRun: TaskRun) => {
return <TaskRunComment taskRun={taskRun} />;
},
diff --git a/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue b/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue
index 26b5880ac5..91f6a590fb 100644
--- a/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue
+++ b/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue
@@ -95,8 +95,7 @@
<div class="relative flex-1">
<MonacoEditor
- ref="monacoEditorRef"
- class="w-full h-full min-h-[200px] border rounded overflow-hidden"
+ class="w-full h-full min-h-[200px] max-h-[50vh] border rounded overflow-hidden"
:filename="filename"
:content="state.statement"
:language="language"
@@ -169,7 +168,7 @@ import { cloneDeep, includes, isEmpty } from "lodash-es";
import { ExpandIcon } from "lucide-vue-next";
import { NButton, NTooltip, useDialog } from "naive-ui";
import { v1 as uuidv1 } from "uuid";
-import { computed, reactive, ref, watch } from "vue";
+import { computed, reactive, watch } from "vue";
import { useI18n } from "vue-i18n";
import { BBAttention, BBModal } from "@/bbkit";
import { MonacoEditor } from "@/components/MonacoEditor";
@@ -219,7 +218,6 @@ const { project } = useCurrentProjectV1();
const { isCreating, plan, planCheckRuns, rollout, events, readonly } =
usePlanContext();
const selectedSpec = useSelectedSpec();
-const monacoEditorRef = ref<InstanceType<typeof MonacoEditor>>();
const editorState = useEditorState();
const state = reactive<LocalState>({
diff --git a/frontend/src/components/Plan/components/StatementSection/StatementSection.vue b/frontend/src/components/Plan/components/StatementSection/StatementSection.vue
index f654d48676..41a3ce6520 100644
--- a/frontend/src/components/Plan/components/StatementSection/StatementSection.vue
+++ b/frontend/src/components/Plan/components/StatementSection/StatementSection.vue
@@ -1,8 +1,5 @@
<template>
- <div
- v-if="viewMode === 'EDITOR'"
- class="flex-1 shrink min-h-0 max-h-[50vh] flex flex-col gap-y-2"
- >
+ <div v-if="viewMode === 'EDITOR'" class="flex-1">
<EditorView :key="editorViewKey" />
</div>
<ReleaseView v-else-if="viewMode === 'RELEASE'" />