Skip to content

Commit 3d53af5

Browse files
committed
optimize: Create a new query window named after the databaseName and datasourceName(OtterMind#1049)
1 parent 1aa3588 commit 3d53af5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

chat2db-client/src/components/Tabs/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179

180180
.input {
181181
border: 0;
182-
width: 86px;
182+
width: 200px;
183183
flex: 1;
184184
height: 20px;
185185
outline: none;

chat2db-client/src/pages/main/workspace/store/console.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const createConsole = (params: ICreateConsoleParams) => {
5959
const currentConnectionDetails = useWorkspaceStore.getState().currentConnectionDetails;
6060
const newConsole = {
6161
...params,
62-
name: params.name || 'new console',
62+
name: params.name || `untitled-${params.databaseName || params.schemaName} (@${params.dataSourceName})`,
6363
ddl: params.ddl || '',
6464
status: ConsoleStatus.DRAFT,
6565
operationType: params.operationType || WorkspaceTabType.CONSOLE,

0 commit comments

Comments
 (0)