Skip to content

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

fix: environment form (#18785)

ecmadaoc7947117ad55
diff --git a/frontend/src/views/EnvironmentDashboard.vue b/frontend/src/views/EnvironmentDashboard.vue
index a141c96502..abd25c5b76 100644
--- a/frontend/src/views/EnvironmentDashboard.vue
+++ b/frontend/src/views/EnvironmentDashboard.vue
@@ -1,11 +1,12 @@
<template>
- <div class="w-full flex flex-col gap-4">
+ <div class="w-full h-full flex flex-col gap-4">
<NTabs
type="line"
:bar-width="200"
:value="state.selectedId"
size="large"
justify-content="start"
+ class="h-full"
tab-style="margin: 0 1rem; padding-left: 2rem; padding: 0 2.5rem 0.5rem 2.5rem;"
@update:value="onTabChange"
>
@@ -14,6 +15,7 @@
:key="item.id"
:name="item.id"
:tab="() => renderTab(item.data!, index)"
+ class="h-full"
>
<EnvironmentDetail
ref="environmentDetailRefs"
@@ -256,6 +258,7 @@ const doCreate = async (params: {
title: environment.title,
order: environmentList.value.length,
color: environment.color,
+ tags: environment.tags,
});
await environmentV1Store.fetchEnvironments();
diff --git a/frontend/src/views/EnvironmentDetail.vue b/frontend/src/views/EnvironmentDetail.vue
index d60311fdd3..28ee280f8a 100644
--- a/frontend/src/views/EnvironmentDetail.vue
+++ b/frontend/src/views/EnvironmentDetail.vue
@@ -8,11 +8,13 @@
@delete="doDelete"
@update-policy="updatePolicy"
>
- <EnvironmentFormBody :features="features" class="w-full px-4" />
- <EnvironmentFormButtons
- class="sticky -bottom-4 bg-white py-4 px-2 border-t border-block-border"
- :class="buttonsClass"
- />
+ <div class="flex flex-col h-full w-full">
+ <EnvironmentFormBody :features="features" class="w-full flex-1 px-4" />
+ <EnvironmentFormButtons
+ class="sticky -bottom-4 bg-white py-4 px-2 border-t border-block-border"
+ :class="buttonsClass"
+ />
+ </div>
</EnvironmentForm>
</template>