Skip to content

Commit d5fe139

Browse files
Merge pull request #1578 from rocket-admin/feat/ibm-plex-mono-table-font
Feat/ibm plex mono table font
2 parents b5634ac + cbf0404 commit d5fe139

8 files changed

Lines changed: 85 additions & 35 deletions

File tree

frontend/angular.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"node_modules/@fontsource/noto-sans/300.css",
3434
"node_modules/@fontsource/noto-sans/400.css",
3535
"node_modules/@fontsource/noto-sans/500.css",
36+
"node_modules/@fontsource/ibm-plex-mono/400.css",
37+
"node_modules/@fontsource/ibm-plex-mono/500.css",
3638
"node_modules/@material-symbols/font-400/outlined.css",
3739
"src/custom-theme.scss",
3840
"src/styles.scss"

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@angular/platform-browser-dynamic": "~20.3.16",
2727
"@angular/router": "~20.3.16",
2828
"@brumeilde/ngx-theme": "^1.2.1",
29+
"@fontsource/ibm-plex-mono": "^5.2.7",
2930
"@fontsource/noto-sans": "^5.2.10",
3031
"@jsonurl/jsonurl": "^1.1.8",
3132
"@material-symbols/font-400": "^0.40.2",

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@
315315
.db-table {
316316
display: grid;
317317
width: 100%;
318+
font-family: "IBM Plex Mono", monospace;
319+
--mat-table-header-headline-font: "IBM Plex Mono", monospace;
320+
--mat-table-row-item-label-text-font: "IBM Plex Mono", monospace;
321+
--mat-table-footer-supporting-text-font: "IBM Plex Mono", monospace;
318322
}
319323

320324
@media (width <= 600px) {

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

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,37 @@
11
.foreign-key-button {
2-
background: transparent;
3-
border: 1px solid transparent;
4-
border-radius: 12px;
5-
color: var(--color-accentedPalette-500);
6-
cursor: pointer;
7-
font-size: inherit;
8-
padding: 2px 8px;
9-
overflow: hidden;
10-
text-overflow: ellipsis;
11-
text-align: left;
12-
max-width: 100%;
13-
transition: background 100ms, border-color 100ms;
2+
background: transparent;
3+
border: 1px solid transparent;
4+
border-radius: 12px;
5+
color: var(--color-accentedPalette-500);
6+
cursor: pointer;
7+
font-family: inherit;
8+
font-size: inherit;
9+
padding: 2px 8px;
10+
overflow: hidden;
11+
text-overflow: ellipsis;
12+
text-align: left;
13+
max-width: 100%;
14+
transition:
15+
background 100ms,
16+
border-color 100ms;
1417
}
1518

1619
@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-
}
20+
.foreign-key-button:hover {
21+
background-color: var(--color-accentedPalette-900);
22+
border: 1px solid var(--color-accentedPalette-700);
23+
}
2124
}
2225

2326
@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-
}
27+
.foreign-key-button:hover {
28+
background-color: var(--color-accentedPalette-100);
29+
border: 1px solid var(--color-accentedPalette-300);
30+
}
2831
}
2932

3033
.foreign-key-button_selected {
31-
background-color: var(--color-accentedPalette-100);
32-
border-radius: 12px;
33-
border: 1px solid var(--color-accentedPalette-300);
34+
background-color: var(--color-accentedPalette-100);
35+
border-radius: 12px;
36+
border: 1px solid var(--color-accentedPalette-300);
3437
}
35-
36-
Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1+
:host {
2+
text-align: right;
3+
}
4+
15
.field-display-id {
2-
display: flex;
3-
align-items: center;
6+
display: flex;
7+
align-items: center;
8+
justify-content: flex-end;
49
}
510

611
.field-value-id {
7-
font-weight: 500;
8-
flex-grow: 1;
12+
font-weight: 500;
13+
flex-grow: 1;
14+
}
15+
16+
.field-copy-button {
17+
right: auto;
18+
left: 0;
919
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1+
:host {
2+
text-align: right;
3+
}
14

5+
.field-display {
6+
justify-content: flex-end;
7+
}
8+
9+
.field-copy-button {
10+
right: auto;
11+
left: 0;
12+
}
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
1+
:host {
2+
text-align: right;
3+
}
4+
5+
.field-display {
6+
justify-content: flex-end;
7+
}
8+
9+
.field-copy-button {
10+
right: auto;
11+
left: 0;
12+
}
13+
114
.out-of-threshold {
2-
display: flex;
3-
align-items: center;
4-
gap: 2px;
15+
display: flex;
16+
align-items: center;
17+
gap: 2px;
518
}
619

720
.out-of-threshold__icon {
8-
font-size: 16px;
9-
width: 16px;
10-
height: 16px;
21+
font-size: 16px;
22+
width: 16px;
23+
height: 16px;
1124
}

frontend/yarn.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2750,6 +2750,13 @@ __metadata:
27502750
languageName: node
27512751
linkType: hard
27522752

2753+
"@fontsource/ibm-plex-mono@npm:^5.2.7":
2754+
version: 5.2.7
2755+
resolution: "@fontsource/ibm-plex-mono@npm:5.2.7"
2756+
checksum: e9f3c3825cebc5f4829cc4f48c7fba9f8c18fb837338ec9b81bab778bd3e69a4e632580df5647831ca3fd782ff7baecd0e2d38585d9a3a6c6db1eb45102afe19
2757+
languageName: node
2758+
linkType: hard
2759+
27532760
"@fontsource/noto-sans@npm:^5.2.10":
27542761
version: 5.2.10
27552762
resolution: "@fontsource/noto-sans@npm:5.2.10"
@@ -12046,6 +12053,7 @@ __metadata:
1204612053
"@angular/platform-browser-dynamic": ~20.3.16
1204712054
"@angular/router": ~20.3.16
1204812055
"@brumeilde/ngx-theme": ^1.2.1
12056+
"@fontsource/ibm-plex-mono": ^5.2.7
1204912057
"@fontsource/noto-sans": ^5.2.10
1205012058
"@jsonurl/jsonurl": ^1.1.8
1205112059
"@material-symbols/font-400": ^0.40.2

0 commit comments

Comments
 (0)