From 0eb35d2a5aa4e34abcf4aeefe63e5f7f8ecd600c Mon Sep 17 00:00:00 2001 From: Lyubov Voloshko Date: Thu, 11 Sep 2025 12:49:47 +0300 Subject: [PATCH] merge main and update sidebar collapse UI --- .../own-connections.component.css | 4 +-- .../dashboard/dashboard.component.css | 28 ++----------------- .../dashboard/dashboard.component.html | 21 ++++++++++---- .../dashboard/dashboard.component.ts | 4 --- .../db-tables-list.component.html | 7 ----- .../db-tables-list.component.ts | 1 - 6 files changed, 21 insertions(+), 44 deletions(-) diff --git a/frontend/src/app/components/connections-list/own-connections/own-connections.component.css b/frontend/src/app/components/connections-list/own-connections/own-connections.component.css index 2267c5e1b..632302e92 100644 --- a/frontend/src/app/components/connections-list/own-connections/own-connections.component.css +++ b/frontend/src/app/components/connections-list/own-connections/own-connections.component.css @@ -54,7 +54,7 @@ .addConnectionLink { display: flex; align-items: center; - gap: 8px; + gap: 6px; border-radius: 4px; box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), @@ -63,7 +63,7 @@ color: inherit; font-weight: 600; height: 48px; - padding-left: 4px; + padding-left: 6px; text-decoration: none; transition: box-shadow 200ms, background 200ms, border 200ms; } diff --git a/frontend/src/app/components/dashboard/dashboard.component.css b/frontend/src/app/components/dashboard/dashboard.component.css index e64944e3f..066b922fe 100644 --- a/frontend/src/app/components/dashboard/dashboard.component.css +++ b/frontend/src/app/components/dashboard/dashboard.component.css @@ -50,34 +50,12 @@ .toggle-button-position { display: flex; - justify-content: flex-end; - margin-bottom: -48px; + justify-content: center; margin-top: 24px; } -.toggle-button { - background-color: var(--mat-sidenav-content-background-color); - border-radius: 4px 0 0 4px !important; - color: inherit; - line-height: 24px; - min-width: 52px !important; - box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.1),0px 6px 8px 0px rgba(0, 0, 0, 0.07),0px 1px 8px 0px rgba(0, 0, 0, 0.06); -} - -.toggle-button::ng-deep .mat-button-wrapper { - padding: 0; -} - -.toggle-button::ng-deep .material-icons { - line-height: 22px; -} - -.toggle-button-position__opened::ng-deep .material-icons { - margin-left: -2px; -} - -.toggle-button-position__closed::ng-deep .material-icons { - margin-left: 2px; +.toggle-button_opened { + width: calc(100% - 32px); } .dashboard { diff --git a/frontend/src/app/components/dashboard/dashboard.component.html b/frontend/src/app/components/dashboard/dashboard.component.html index 428a6ee2f..64eefe018 100644 --- a/frontend/src/app/components/dashboard/dashboard.component.html +++ b/frontend/src/app/components/dashboard/dashboard.component.html @@ -47,20 +47,31 @@

Rocketadmin can not find any tables

-
- + + + +
diff --git a/frontend/src/app/components/dashboard/dashboard.component.ts b/frontend/src/app/components/dashboard/dashboard.component.ts index 1ba201ec2..e4ed2e74d 100644 --- a/frontend/src/app/components/dashboard/dashboard.component.ts +++ b/frontend/src/app/components/dashboard/dashboard.component.ts @@ -120,10 +120,6 @@ export class DashboardComponent implements OnInit, OnDestroy { return this._connections.currentConnectionAccessLevel } - get currentConnectionTitle () { - return this._connections.currentConnection.title || this._connections.currentConnection.database || 'Tables' - } - get currentConnectionIsTest () { return this._connections.currentConnection.isTestConnection } diff --git a/frontend/src/app/components/dashboard/db-tables-list/db-tables-list.component.html b/frontend/src/app/components/dashboard/db-tables-list/db-tables-list.component.html index f4d5cbfaa..8069fd56c 100644 --- a/frontend/src/app/components/dashboard/db-tables-list/db-tables-list.component.html +++ b/frontend/src/app/components/dashboard/db-tables-list/db-tables-list.component.html @@ -1,10 +1,3 @@ -
- table_view - -

{{connectionTitle}}

-
-
- diff --git a/frontend/src/app/components/dashboard/db-tables-list/db-tables-list.component.ts b/frontend/src/app/components/dashboard/db-tables-list/db-tables-list.component.ts index d4ecf3939..538c1e450 100644 --- a/frontend/src/app/components/dashboard/db-tables-list/db-tables-list.component.ts +++ b/frontend/src/app/components/dashboard/db-tables-list/db-tables-list.component.ts @@ -30,7 +30,6 @@ import { TableStateService } from 'src/app/services/table-state.service'; }) export class DbTablesListComponent { @Input() connectionID: string; - @Input() connectionTitle: string; @Input() tables: TableProperties[]; @Input() selectedTable: string; @Input() collapsed: boolean;