Skip to content

Commit 831395a

Browse files
committed
fix UI problems in chat and alert-component
1 parent 6e57b43 commit 831395a

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

src/app/chat/chat.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { interval, take } from 'rxjs';
2727
>
2828
<div class="flex h-[600px] border">
2929
<app-chat-conversation-list
30-
class="min-w-[300px] overflow-y-auto border-r border-gray-300 py-2 max-md:flex-1 md:flex-none"
30+
class="min-w-[300px] overflow-y-auto overflow-x-hidden border-r border-gray-300 py-2 max-md:flex-1 md:w-[300px] md:flex-none"
3131
[class.max-md:hidden]="chatState.activeChatId() !== null"
3232
></app-chat-conversation-list>
3333
<div
@@ -73,9 +73,9 @@ import { interval, take } from 'rxjs';
7373
7474
<ng-container *ngIf="chatState.chatsFetchState() === 'error'">
7575
<app-alert alertType="error" icon="error">
76-
<p>
76+
<span>
7777
Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut.
78-
</p>
78+
</span>
7979
</app-alert>
8080
</ng-container>
8181

src/app/chat/ui/chat-messages/chat-messages.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ import { map } from 'rxjs';
1717
@Component({
1818
selector: 'app-chat-messages',
1919
template: `
20+
<!-- <div class="relative">-->
2021
<div
2122
*ngIf="ownUserId()"
22-
class="flex h-[500px] flex-col-reverse overflow-auto p-8"
23+
class="flex h-[452px] flex-col-reverse overflow-auto p-8"
2324
>
2425
<div class="flex flex-col gap-8">
2526
<app-chat-single-message
@@ -41,6 +42,7 @@ import { map } from 'rxjs';
4142
</div>
4243
</div>
4344
</div>
45+
<!-- </div>-->
4446
`,
4547
changeDetection: ChangeDetectionStrategy.OnPush,
4648
standalone: true,

src/app/chat/ui/conversation-list/chat-conversation-list-entry.component.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ import { Profile } from '../../../profile/data-access/types/profile.types';
3434
}"
3535
(click)="chatState.selectChat$.next(conversation()!.id)"
3636
>
37-
<div class="h-16 w-16 overflow-hidden rounded-full object-cover">
37+
<div
38+
class="h-16 w-16 shrink-0 overflow-hidden rounded-full object-cover"
39+
>
3840
<img
3941
class=""
4042
[src]="
@@ -48,8 +50,10 @@ import { Profile } from '../../../profile/data-access/types/profile.types';
4850
/>
4951
</div>
5052
<div class="flex flex-col gap-0">
51-
<div class="text-2xl">{{ participant()!.dancerName }}</div>
52-
<div class="text-lg text-gray-600">
53+
<div class="truncate text-2xl">
54+
{{ participant()!.dancerName }}
55+
</div>
56+
<div class="truncate text-lg text-gray-600">
5357
{{ participant()!.city }}
5458
</div>
5559
</div>

src/app/profile/feature/public-profile.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ import { AlertComponent } from '@shared/ui/alert/alert.component';
134134
135135
<ng-container *ngIf="profileResponse.fetchStatus === 'error'">
136136
<app-alert alertType="error" icon="error" class="mx-auto">
137-
<p>
137+
<span>
138138
Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später
139139
erneut.
140-
</p>
140+
</span>
141141
</app-alert>
142142
</ng-container>
143143
</div>

src/app/recommendation/recommendations.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ import { BehaviorSubject, filter, map, switchMap } from 'rxjs';
8686
<ng-template #error>
8787
<h1 class="page-header">Fehler bei der Abfrage der Empfehlungen</h1>
8888
<app-alert alertType="error" icon="error">
89-
<p>
89+
<span>
9090
Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut.
91-
</p>
91+
</span>
9292
</app-alert>
9393
</ng-template>
9494
</div>

0 commit comments

Comments
 (0)