Skip to content

Commit a90a85a

Browse files
authored
Fix domain page "not found" layout issue (#2474)
1 parent 6e68876 commit a90a85a

3 files changed

Lines changed: 32 additions & 31 deletions

File tree

console-webapp/src/app/domains/domainList.component.html

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
11
<app-selected-registrar-wrapper>
2-
<div class="console-domains">
2+
<div class="console-app-domains">
33
<h1 class="mat-headline-4">Domains</h1>
4-
<a
5-
mat-stroked-button
6-
color="primary"
7-
href="/console-api/dum-download?registrarId={{
8-
registrarService.registrarId()
9-
}}"
10-
class="console-app-domains__download"
11-
>
12-
<mat-icon>download</mat-icon>
13-
Download domains (.csv)
14-
</a>
15-
<mat-form-field class="console-app__domains-filter">
16-
<mat-label>Filter</mat-label>
17-
<input
18-
type="search"
19-
matInput
20-
[(ngModel)]="searchTerm"
21-
(ngModelChange)="sendInput()"
22-
[disabled]="isLoading"
23-
#input
24-
/>
25-
</mat-form-field>
4+
265
@if (!isLoading && totalResults == 0) {
276
<div class="console-app__empty-domains">
287
<h1>
@@ -38,6 +17,29 @@ <h1>No domains found</h1>
3817
<div class="console-app__domains-spinner">
3918
<mat-spinner />
4019
</div>
20+
} @else {
21+
<a
22+
mat-stroked-button
23+
color="primary"
24+
href="/console-api/dum-download?registrarId={{
25+
registrarService.registrarId()
26+
}}"
27+
class="console-app-domains__download"
28+
>
29+
<mat-icon>download</mat-icon>
30+
Download domains (.csv)
31+
</a>
32+
<mat-form-field class="console-app__domains-filter">
33+
<mat-label>Filter</mat-label>
34+
<input
35+
type="search"
36+
matInput
37+
[(ngModel)]="searchTerm"
38+
(ngModelChange)="sendInput()"
39+
[disabled]="isLoading"
40+
#input
41+
/>
42+
</mat-form-field>
4143
}
4244
<mat-table
4345
[dataSource]="dataSource"

console-webapp/src/app/domains/domainList.component.scss

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@
1212
}
1313
}
1414

15-
&-domains {
16-
position: relative;
17-
&__download {
18-
position: absolute;
19-
top: 0;
20-
right: 0;
21-
}
15+
&-domains__download {
16+
position: absolute;
17+
top: -55px;
18+
right: 0;
2219
}
2320

2421
&__domains {
@@ -33,6 +30,8 @@
3330

3431
&__domains-table-parent {
3532
position: relative;
33+
width: fit-content;
34+
min-width: 100%;
3635
}
3736

3837
&__domains-table {

console-webapp/src/app/registrar/registrar.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import { Injectable, computed, signal } from '@angular/core';
16-
import { Observable, tap, switchMap } from 'rxjs';
16+
import { Observable, switchMap, tap } from 'rxjs';
1717

1818
import { MatSnackBar } from '@angular/material/snack-bar';
1919
import { Router } from '@angular/router';

0 commit comments

Comments
 (0)