Skip to content

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

chore: update layout (#6920)

Liu Jia655cc49ee2e
diff --git a/frontend/src/views/sql-editor/EditorCommon/ResultView/ErrorView.vue b/frontend/src/views/sql-editor/EditorCommon/ResultView/ErrorView.vue
index 5a30bd8f3f..36647cb102 100644
--- a/frontend/src/views/sql-editor/EditorCommon/ResultView/ErrorView.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/ResultView/ErrorView.vue
@@ -1,11 +1,12 @@
<template>
<div
- class="text-md font-normal"
+ class="text-md font-normal flex items-center gap-x-3"
:class="[
dark ? 'text-[var(--color-matrix-green-hover)]' : 'text-control-light',
]"
>
- {{ error }}
+ <span>{{ error }}</span>
+ <slot name="suffix" />
</div>
</template>
diff --git a/frontend/src/views/sql-editor/EditorCommon/ResultView/ResultViewV1.vue b/frontend/src/views/sql-editor/EditorCommon/ResultView/ResultViewV1.vue
index 240155cae2..eb883c746b 100644
--- a/frontend/src/views/sql-editor/EditorCommon/ResultView/ResultViewV1.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/ResultView/ResultViewV1.vue
@@ -31,10 +31,14 @@
<EmptyView />
</template>
<template v-else-if="viewMode === 'ERROR'">
- <ErrorView :error="resultSet.error" />
- <RequestQueryButton
- v-if="resultSet.status === Status.PERMISSION_DENIED"
- />
+ <ErrorView :error="resultSet.error">
+ <template
+ v-if="resultSet.status === Status.PERMISSION_DENIED"
+ #suffix
+ >
+ <RequestQueryButton />
+ </template>
+ </ErrorView>
</template>
</template>