Skip to content

Commit

Permalink
Merge pull request #1984 from DSD-DBS/fix-feedback-dialog
Browse files Browse the repository at this point in the history
fix: Optimize feedback dialog for small mobile devices
  • Loading branch information
MoritzWeber0 authored Nov 13, 2024
2 parents 6156e34 + 0c113f8 commit 8e3c71a
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
~ SPDX-License-Identifier: Apache-2.0
-->

<form class="dialog min-w-96" [formGroup]="feedbackForm" (submit)="submit()">
<form
class="dialog w-96 max-w-full"
[formGroup]="feedbackForm"
(submit)="submit()"
>
<h1 class="text-lg font-semibold">
@if (data.sessions.length === 0) {
How has your experience been?
Expand Down Expand Up @@ -49,7 +53,7 @@ <h1 class="text-lg font-semibold">
</div>

@if (feedbackForm.get("rating")?.value) {
<mat-form-field class="w-full">
<mat-form-field class="!mb-2.5 w-full">
@if (feedbackForm.get("rating")?.value === "good") {
<mat-label>What was good?</mat-label>
} @else {
Expand All @@ -65,7 +69,7 @@ <h1 class="text-lg font-semibold">
Your feedback can't be longer than 500 characters.
</mat-error>
}
<mat-hint
<mat-hint class="h-[42px]"
>Try to be specific. What happened? What were you doing?</mat-hint
>
</mat-form-field>
Expand Down

0 comments on commit 8e3c71a

Please sign in to comment.