mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 12:35:07 +00:00
Fixed: Mail Compose dialog responsive issues
+ Added Show/Hide CC & BCC fields toggle button
This commit is contained in:
parent
b1ab11393e
commit
abfb2a6706
|
@ -28,7 +28,12 @@
|
||||||
type="email" required>
|
type="email" required>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field>
|
<div class="show-hide-extra-fields" (click)="toggleExtraToFields()">
|
||||||
|
<span [fxShow]="!showExtraToFields">Show CC & BCC</span>
|
||||||
|
<span [fxShow]="showExtraToFields">Hide CC & BCC</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<mat-form-field [fxShow]="showExtraToFields">
|
||||||
<input matInput
|
<input matInput
|
||||||
name="cc"
|
name="cc"
|
||||||
placeholder="Cc"
|
placeholder="Cc"
|
||||||
|
@ -36,7 +41,7 @@
|
||||||
type="email">
|
type="email">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field>
|
<mat-form-field [fxShow]="showExtraToFields">
|
||||||
<input matInput
|
<input matInput
|
||||||
name="bcc"
|
name="bcc"
|
||||||
placeholder="Bcc"
|
placeholder="Bcc"
|
||||||
|
@ -51,11 +56,11 @@
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<textarea matInput name="message"
|
<textarea matInput name="message"
|
||||||
placeholder="Message"
|
placeholder="Message"
|
||||||
formControlName="message"
|
formControlName="message"
|
||||||
rows="6">
|
rows="6">
|
||||||
</textarea>
|
</textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<div class="attachment-list">
|
<div class="attachment-list">
|
||||||
|
|
|
@ -1,7 +1,17 @@
|
||||||
|
@import "src/app/core/scss/fuse";
|
||||||
|
|
||||||
.mail-compose-dialog {
|
.mail-compose-dialog {
|
||||||
|
|
||||||
|
@include media-breakpoint('xs') {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up('sm') {
|
||||||
|
width: 640px;
|
||||||
|
}
|
||||||
|
|
||||||
.mat-dialog-container {
|
.mat-dialog-container {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
width: 720px;
|
|
||||||
|
|
||||||
.compose-form {
|
.compose-form {
|
||||||
|
|
||||||
|
@ -9,6 +19,12 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.show-hide-extra-fields {
|
||||||
|
text-align: right;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.attachment-list {
|
.attachment-list {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
padding-top: 16px;
|
padding-top: 16px;
|
||||||
|
|
|
@ -10,6 +10,7 @@ import { FormControl, FormGroup } from '@angular/forms';
|
||||||
})
|
})
|
||||||
export class FuseMailComposeDialogComponent implements OnInit
|
export class FuseMailComposeDialogComponent implements OnInit
|
||||||
{
|
{
|
||||||
|
showExtraToFields = false;
|
||||||
composeForm: FormGroup;
|
composeForm: FormGroup;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
@ -39,4 +40,8 @@ export class FuseMailComposeDialogComponent implements OnInit
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toggleExtraToFields()
|
||||||
|
{
|
||||||
|
this.showExtraToFields = !this.showExtraToFields;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user