Skip to content

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

chore: adjust drawer width for small screens (#7780)

boojack8faee1f9d58a
diff --git a/frontend/src/components/SchemaDesigner/CreateSchemaDesignPanel.vue b/frontend/src/components/SchemaDesigner/CreateSchemaDesignPanel.vue
index e8dedaa0d2..ef22b8cf76 100644
--- a/frontend/src/components/SchemaDesigner/CreateSchemaDesignPanel.vue
+++ b/frontend/src/components/SchemaDesigner/CreateSchemaDesignPanel.vue
@@ -1,17 +1,17 @@
<template>
<NDrawer
+ class="min-w-[calc(100%-10rem)] max-w-full"
:show="true"
- width="auto"
:auto-focus="false"
:trap-focus="false"
:close-on-esc="true"
+ :native-scrollbar="true"
+ resizable
@update:show="(show: boolean) => !show && emit('dismiss')"
>
<NDrawerContent :title="$t('database.new-branch')" :closable="true">
- <div
- class="space-y-3 w-full sm:w-[calc(100vw-16rem)] max-w-[calc(100vw-8rem)] overflow-x-auto"
- >
- <div class="w-full flex flex-row justify-start items-center">
+ <div class="space-y-3 w-full overflow-x-auto">
+ <div class="w-full flex flex-row justify-start items-center mt-1">
<span class="flex w-40 items-center text-sm">{{
$t("database.branch-name")
}}</span>
diff --git a/frontend/src/components/SchemaDesigner/EditSchemaDesignPanel.vue b/frontend/src/components/SchemaDesigner/EditSchemaDesignPanel.vue
index 0bf82a7716..64dc00ea5a 100644
--- a/frontend/src/components/SchemaDesigner/EditSchemaDesignPanel.vue
+++ b/frontend/src/components/SchemaDesigner/EditSchemaDesignPanel.vue
@@ -1,15 +1,15 @@
<template>
<NDrawer
+ class="min-w-[calc(100%-10rem)] max-w-full"
:show="true"
- width="auto"
:auto-focus="false"
:close-on-esc="true"
+ :native-scrollbar="true"
+ resizable
@update:show="(show: boolean) => !show && emit('dismiss')"
>
<NDrawerContent :title="$t('database.branch')" :closable="true">
- <div
- class="space-y-3 w-full sm:w-[calc(100vw-16rem)] max-w-[calc(100vw-8rem)] overflow-x-auto"
- >
+ <div class="space-y-3 w-full overflow-x-auto">
<div
class="w-full border-b pb-2 mb-2 flex flex-row justify-between items-center"
>