diff --git a/src/app/notes/components/note/note.component.html b/src/app/notes/components/note/note.component.html
index 6280386..972f64c 100644
--- a/src/app/notes/components/note/note.component.html
+++ b/src/app/notes/components/note/note.component.html
@@ -8,15 +8,34 @@
- {{note.title}}
+
+
+
-
- {{note.description}}
-
+
+
+
+
+
+
flag {{note.dueDate | date}}
diff --git a/src/app/notes/components/note/note.component.ts b/src/app/notes/components/note/note.component.ts
index 44e9eaf..0babd5e 100644
--- a/src/app/notes/components/note/note.component.ts
+++ b/src/app/notes/components/note/note.component.ts
@@ -65,4 +65,20 @@ export class NoteComponent implements OnInit {
dueDate: event.value
});
}
+
+ updateNoteDescription(e) {
+ if (e.target.value.trim().length) {
+ this.noteDoc.update({
+ description: e.target.value
+ });
+ }
+ }
+
+ updateNoteTitle(e) {
+ if (e.target.value.trim().length) {
+ this.noteDoc.update({
+ title: e.target.value
+ });
+ }
+ }
}
diff --git a/src/styles.scss b/src/styles.scss
index cadd1b4..ac41593 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -73,6 +73,20 @@ body {
color: #FFF;
}
}
+
+ .mat-card {
+ .mat-card-header-text {
+ align-items: center;
+ display: flex;
+ }
+ }
+
+ @media screen and (max-width: $break-small) {
+ .mat-card-avatar {
+ height: 30px;
+ width: 30px;
+ }
+ }
}
app-note {
@@ -96,6 +110,36 @@ body {
}
}
+ .note-field {
+ .mat-form-field {
+ display: block;
+ font-size: 16px;
+
+ .mat-form-field-wrapper {
+ padding: 16px;
+
+ .mat-form-field-infix {
+ border: 0 none;
+ margin: 0;
+ padding: 0;
+ }
+ }
+
+ .mat-form-field-underline {
+ display: none;
+ }
+
+ @media screen and (max-width: $break-small) {
+ font-size: 12px;
+
+ .mat-form-field-wrapper {
+ padding-left: 12px;
+ padding-right: 12px;
+ }
+ }
+ }
+ }
+
.mat-card {
max-width: 80%;
margin: 2em auto;
@@ -144,11 +188,6 @@ body {
background-color: rgba(0,0,0,.03);
padding: 24px 8px;
- .mat-card-header-text {
- align-items: center;
- display: flex;
- }
-
.mat-card-title {
color: rgba(0,0,0,.54);
font-size: 20px;