Skip to content

Commit

Permalink
Fix styles issue with opinions textarea components (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillermo Gonzalez committed Aug 22, 2024
1 parent 4bd02cc commit 1ad5954
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
17 changes: 11 additions & 6 deletions apps/blog/src/app/features/post/comments/comments.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@
}

mat-form-field {
::ng-deep.code-none {
height: auto;

.code-1 {
color: map-get($md-primary, 500);
}
textarea {
color: map-get($md-grey, 700);
}

.code-var {
color: map-get($md-grey, 600);
::ng-deep.mat-mdc-text-field-wrapper {
.mat-mdc-form-field-flex {
height: auto;

label {
top: 15px;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class CommentsComponent implements OnInit, OnDestroy {
editComment(comment: Comment): void {
this.dialog.open(EditCommentModalComponent, {
width: '500px',
height: '600px',
height: '540px',
maxHeight: '600px',
data: {comment}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>
<div class='body flex flex-col'>

<form class='flex flex-col h-full mb-5'
<form class='flex flex-col h-full mb-10'
[formGroup]='commentForm'>

<span class='comment-error-message'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,19 @@

mat-form-field {
width: 100%;
height: auto;

::ng-deep {
.mat-mdc-text-field-wrapper {
.mat-mdc-form-field-flex {
height: auto;

label {
top: 15px;
}
}
}

textarea {
height: 320px;
max-height: 320px;
Expand Down

0 comments on commit 1ad5954

Please sign in to comment.