Skip to content

Commit 73212a1

Browse files
Merge pull request #1452 from rocket-admin/fixes
Fixes
2 parents b22bd2b + 40aa568 commit 73212a1

File tree

10 files changed

+46
-18
lines changed

10 files changed

+46
-18
lines changed

frontend/src/app/components/dashboard/dashboard.component.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
:host {
2+
margin-bottom: -60px;
3+
}
4+
15
.mat-sidenav-container {
26
height: 100%;
37
/* height: calc(100vh - 56px); */
@@ -50,10 +54,6 @@
5054
text-decoration: none;
5155
}
5256

53-
.mat-sidenav-content {
54-
padding: 0 24px;
55-
}
56-
5757
.toggle-button {
5858
margin-top: 8px;
5959
margin-left: 12px;
@@ -116,6 +116,10 @@
116116

117117
.table-preview-content {
118118
flex-grow: 1;
119+
padding-bottom: 24px;
120+
height: calc(100vh - 44px);
121+
padding: 0 24px;
122+
overflow-y: scroll;
119123
width: 100%;
120124
}
121125

frontend/src/app/components/dashboard/db-table-view/db-table-row-view/db-table-row-view.component.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
background-color: var(--mat-sidenav-content-background-color);
1313
border-left: solid 1px rgba(0, 0, 0, 0.12);
1414
opacity: 1;
15-
transform: translateX(24px);
15+
transform: translateX(0);
1616
width: clamp(200px, 22vw, 400px);
1717
}
1818

@@ -31,7 +31,7 @@
3131
left: 0;
3232
min-height: initial;
3333
max-height: initial;
34-
width: calc(100vw - 24px);
34+
width: 100vw;
3535
z-index: 2;
3636
}
3737
}

frontend/src/app/components/dashboard/db-table-view/db-table-view.component.css

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201

202202
@media (prefers-color-scheme: light) {
203203
.db-table-manage-columns-button__count {
204-
color: rgba(0, 0, 0, 0.64);
204+
color: rgba(0, 0, 0, 0.52);
205205
}
206206
}
207207

@@ -289,7 +289,7 @@
289289

290290
@media (prefers-color-scheme: dark) {
291291
.db-table ::ng-deep .db-table-row:hover {
292-
--hover-color: var(--color-primaryPalette-500);
292+
--hover-color: var(--color-primaryPalette-900);
293293
}
294294
}
295295

@@ -429,13 +429,13 @@ th.mat-header-cell, td.mat-cell {
429429

430430
@media (prefers-color-scheme: light) {
431431
.db-table-cell-actions {
432-
color: #4f4f4f;
432+
color: rgba(0,0,0,0.64);
433433
}
434434
}
435435

436436
@media (prefers-color-scheme: dark) {
437437
.db-table-cell-actions {
438-
color: #cdcdcd;
438+
color: rgba(255,255,255,0.64);
439439
}
440440
}
441441

@@ -466,6 +466,17 @@ th.mat-header-cell, td.mat-cell {
466466
justify-content: flex-end;
467467
}
468468

469+
.db-table-cell-action-button {
470+
--mdc-icon-button-state-layer-size: 30px !important;
471+
--mdc-icon-button-icon-size: 20px !important;
472+
}
473+
474+
.db-table-cell-action-button ::ng-deep .mat-icon {
475+
font-size: 20px;
476+
height: 20px;
477+
width: 20px;
478+
}
479+
469480
.table-cell-content {
470481
overflow: hidden;
471482
white-space: nowrap;

frontend/src/app/components/dashboard/db-table-view/db-table-view.component.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ <h2 class="mat-h2 table-name">{{ displayName }}</h2>
282282
<mat-cell *matCellDef="let element; let i = index" class="db-table-cell-actions">
283283
<ng-container *ngIf="tableData.tableActions && tableData.tableActions.length">
284284
<button type="button" mat-icon-button *ngFor="let action of tableData.tableActions"
285+
class="db-table-cell-action-button"
285286
[matTooltip]="action.title"
286287
(click)="handleAction($event, action, element)">
287288
<mat-icon fontSet="material-icons-outlined">
@@ -292,6 +293,7 @@ <h2 class="mat-h2 table-name">{{ displayName }}</h2>
292293
<a mat-icon-button *ngIf="tableData.permissions.edit"
293294
routerLink="/dashboard/{{connectionID}}/{{name}}/entry"
294295
[queryParams]="tableData.getQueryParams(element)"
296+
class="db-table-cell-action-button"
295297
attr.data-testid="table-edit-record-{{i}}-link"
296298
attr.data-test-primary-key-name="{{tableData.keyAttributes[0]?.column_name}}"
297299
attr.data-test-primary-key-value="{{element[tableData.keyAttributes[0]?.column_name]}}"
@@ -304,6 +306,7 @@ <h2 class="mat-h2 table-name">{{ displayName }}</h2>
304306
<a mat-icon-button *ngIf="tableData.permissions.add"
305307
routerLink="/dashboard/{{connectionID}}/{{name}}/entry"
306308
[queryParams]="tableData.getQueryParams(element, 'dub')"
309+
class="db-table-cell-action-button"
307310
attr.data-testid="table-duplicate-record-{{i}}-link"
308311
attr.data-test-primary-key-name="{{tableData.keyAttributes[0]?.column_name}}"
309312
attr.data-test-primary-key-value="{{element[tableData.keyAttributes[0]?.column_name]}}"
@@ -314,6 +317,7 @@ <h2 class="mat-h2 table-name">{{ displayName }}</h2>
314317
<mat-icon fontSet="material-icons-outlined">difference</mat-icon>
315318
</a>
316319
<button type="button" mat-icon-button *ngIf="tableData.permissions.delete && tableData.canDelete"
320+
class="db-table-cell-action-button"
317321
attr.data-testid="table-delete-record-{{i}}-button"
318322
angulartics2On="click"
319323
angularticsAction="Dashboard: delete row is clicked"

frontend/src/app/components/dashboard/db-table-view/db-table-widgets/widget/widget.component.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
.code-editor-box {
1515
display: block;
1616
border: 1px solid rgba(0, 0, 0, 0.38);
17-
border-radius: 0;
17+
border-radius: 4px;
1818
margin-bottom: 20px;
1919
overflow-y: auto;
2020
resize: vertical;

frontend/src/app/components/dashboard/db-tables-data-source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export class TablesDataSource implements DataSource<Object> {
317317
getActionsColumnWidth(actions, permissions) {
318318
const defaultActionsCount = permissions.edit + permissions.add + (!!permissions.delete && !!this.canDelete);
319319
const totalActionsCount = actions.length + defaultActionsCount;
320-
const lengthValue = ((totalActionsCount * 36) + 32);
320+
const lengthValue = ((totalActionsCount * 30) + 32);
321321
return totalActionsCount === 0 ? '0' : `${lengthValue}px`
322322
}
323323

frontend/src/app/components/ui-components/record-edit-fields/code/code.component.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.code-editor-box {
22
display: block;
33
border: 1px solid rgba(0, 0, 0, 0.38);
4-
border-radius: 0;
4+
border-radius: 4px;
55
margin-top: 4px;
66
margin-bottom: 20px;
77
/* overflow-y: auto;

frontend/src/app/components/ui-components/record-edit-fields/json-editor/json-editor.component.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.code-editor-box {
22
display: block;
33
border: 1px solid rgba(0, 0, 0, 0.38);
4-
border-radius: 0;
4+
border-radius: 4px;
55
margin-top: 4px;
66
margin-bottom: 20px;
77
/* overflow-y: auto;

frontend/src/app/components/ui-components/table-display-fields/foreign-key/foreign-key.component.css

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,18 @@
1313
transition: background 100ms, border-color 100ms;
1414
}
1515

16-
.foreign-key-button:hover{
17-
background-color: var(--color-accentedPalette-100);
18-
border: 1px solid var(--color-accentedPalette-300);
16+
@media (prefers-color-scheme: dark) {
17+
.foreign-key-button:hover{
18+
background-color: var(--color-accentedPalette-900);
19+
border: 1px solid var(--color-accentedPalette-700);
20+
}
21+
}
22+
23+
@media (prefers-color-scheme: light) {
24+
.foreign-key-button:hover{
25+
background-color: var(--color-accentedPalette-100);
26+
border: 1px solid var(--color-accentedPalette-300);
27+
}
1928
}
2029

2130
.foreign-key-button_selected {

frontend/src/custom-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ html {
2222
--mdc-filled-button-container-shape: 4px;
2323
--mdc-outlined-button-container-shape: 4px;
2424
--mdc-text-button-container-shape: 4px;
25-
--mdc-outlined-text-field-container-shape: 0px !important;
25+
--mdc-outlined-text-field-container-shape: 4px !important;
2626
}
2727

2828
@media (prefers-color-scheme: dark) {

0 commit comments

Comments
 (0)