diff --git a/frontend/src/app/components/dashboard/dashboard.component.css b/frontend/src/app/components/dashboard/dashboard.component.css index bede3f5b8..3f9572788 100644 --- a/frontend/src/app/components/dashboard/dashboard.component.css +++ b/frontend/src/app/components/dashboard/dashboard.component.css @@ -36,8 +36,14 @@ } } +.table-list-sidenav-container ::ng-deep .mat-drawer-inner-container, +.side-bar_collapsed ::ng-deep .mat-drawer-inner-container { + overflow-y: auto !important; + overflow-x: hidden !important; +} + .table-list-sidenav-container ::ng-deep .mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container { - display: initial; + display: block; } .mat-list-item { @@ -105,6 +111,7 @@ .table-preview { display: flex; overflow-x: hidden; + height: calc(100vh - 44px); } .table-preview-content { diff --git a/frontend/src/app/components/dashboard/db-table-view/db-table-row-view/db-table-row-view.component.css b/frontend/src/app/components/dashboard/db-table-view/db-table-row-view/db-table-row-view.component.css index 3d8e26916..0fd0eaca7 100644 --- a/frontend/src/app/components/dashboard/db-table-view/db-table-row-view/db-table-row-view.component.css +++ b/frontend/src/app/components/dashboard/db-table-view/db-table-row-view/db-table-row-view.component.css @@ -25,7 +25,14 @@ @media (width <= 600px) { .row-preview-sidebar_open { - width: 0; + position: fixed; + top: 44px; + bottom: 0; + left: 0; + min-height: initial; + max-height: initial; + width: calc(100vw - 24px); + z-index: 2; } } diff --git a/frontend/src/app/components/dashboard/db-table-view/db-table-settings/db-table-settings.component.css b/frontend/src/app/components/dashboard/db-table-view/db-table-settings/db-table-settings.component.css index d267f61af..fa12f4272 100644 --- a/frontend/src/app/components/dashboard/db-table-view/db-table-settings/db-table-settings.component.css +++ b/frontend/src/app/components/dashboard/db-table-view/db-table-settings/db-table-settings.component.css @@ -27,6 +27,23 @@ } } +.settings-fields__subheading { + margin-top: -4px !important; + margin-bottom: 0 !important; +} + +@media (prefers-color-scheme: dark) { + .settings-fields__subheading { + color: rgba(255,255,255,0.64); + } +} + +@media (prefers-color-scheme: light) { + .settings-fields__subheading { + color: rgba(0,0,0,0.64); + } +} + .settings-table-display { display: flex; align-items: center; @@ -94,13 +111,25 @@ top: -12px; left: 8px; display: inline-block; - background: #fff; - color: rgba(0, 0, 0, 0.6); font-size: 0.75em; padding: 4px; z-index: 1; } +@media (prefers-color-scheme: dark) { + .order__title { + background: transparent; + color: rgba(255, 255, 255, 0.6); + } +} + +@media (prefers-color-scheme: light) { + .order__title { + background: #fff; + color: rgba(0, 0, 0, 0.6); + } +} + .order-item { background: var(--mat-expansion-container-background-color); color: var(--mat-expansion-container-text-color); diff --git a/frontend/src/app/components/dashboard/db-table-view/db-table-settings/db-table-settings.component.html b/frontend/src/app/components/dashboard/db-table-view/db-table-settings/db-table-settings.component.html index 5dbc53d66..6e3f7e20e 100644 --- a/frontend/src/app/components/dashboard/db-table-view/db-table-settings/db-table-settings.component.html +++ b/frontend/src/app/components/dashboard/db-table-view/db-table-settings/db-table-settings.component.html @@ -155,7 +155,7 @@

Table view

"Edit row" behavior

-

You can edit a row by clicking on the "pencil" icon on the right.

+

You can edit a row by clicking on the "pencil" icon on the right.

Searchable foreign key columns {{ displayName }} {{action.title}} + - - - -
- -
-
- - dehaze - folder - -
- {{folder.name}} -
+ +
+ + + + Nothing found. + + + +
+ +
-
- - - - - chevron_right - - - - - -
-
-
-
-
- - {{getTableName(table)}} - + +
+ +
+
+ + dehaze + folder + +
+ {{folder.name}} +
+ +
+ + + + + chevron_right + + + + + +
- -
- -
-

No tables in this folder

- +
+ + +
+

No tables in this folder

+ +
+
- -
-
- +
+ +
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 c386cc20a..68b63c871 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 @@ -429,6 +429,11 @@ export class DbTablesListComponent implements OnInit, OnChanges { return folder.id; } + hasCustomFolders(): boolean { + // Check if there are folders other than "All Tables" + return this.folders.some(folder => folder.name !== 'All Tables'); + } + private preserveFolderStates() { // Save expanded states of all folders this.folders.forEach(folder => { diff --git a/frontend/src/app/components/ui-components/record-edit-fields/foreign-key/foreign-key.component.css b/frontend/src/app/components/ui-components/record-edit-fields/foreign-key/foreign-key.component.css index 7e45a5324..af4b5f51d 100644 --- a/frontend/src/app/components/ui-components/record-edit-fields/foreign-key/foreign-key.component.css +++ b/frontend/src/app/components/ui-components/record-edit-fields/foreign-key/foreign-key.component.css @@ -22,6 +22,22 @@ margin-bottom: 16px; } +.foreign-key ::ng-deep .mat-mdc-form-field-hint-wrapper { + padding-right: 0; + width: calc(100% + 8px); +} + +@media screen and (width <= 600px) { + .foreign-key ::ng-deep .mat-mdc-form-field-subscript-wrapper{ + margin-bottom: 24px; + } + + .foreign-key ::ng-deep .mat-mdc-form-field-bottom-align::before { + margin-left: 0; + } + +} + .hint-link { color: var(--color-accentedPalette-500); } diff --git a/frontend/src/app/components/ui-components/record-edit-fields/foreign-key/foreign-key.component.html b/frontend/src/app/components/ui-components/record-edit-fields/foreign-key/foreign-key.component.html index cb1b60249..1c1b2a961 100644 --- a/frontend/src/app/components/ui-components/record-edit-fields/foreign-key/foreign-key.component.html +++ b/frontend/src/app/components/ui-components/record-edit-fields/foreign-key/foreign-key.component.html @@ -18,8 +18,8 @@ } - Improve search performance by configuring Foreign key search fields  - here. + Improve search performance by configuring Searchable foreign key columns  + here