From e6ee5d017e7024ec099d0bb309c415f7d2e10a22 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Fri, 22 Sep 2017 15:02:07 +0300 Subject: [PATCH] small tweaks and ng-* cleanups + Fixed: todo item action buttons shouldn't trigger "view todo" action + Fixed: contacts selected bar mobile issues --- .../theme-options.component.scss | 2 +- .../apps/calendar/calendar.component.scss | 8 ++++---- .../event-form/event-form.component.html | 4 ++-- .../sidenavs/left/chats/chats.component.html | 1 - .../apps/contacts/contacts.component.html | 2 +- .../selected-bar/selected-bar.component.html | 4 ++-- .../sidenavs/main/main.component.scss | 4 ++-- .../dashboards/project/project.component.html | 12 +++++++---- .../dialogs/compose/compose.component.html | 2 +- .../mail-details/mail-details.component.html | 2 +- .../board/dialogs/card/card.component.html | 1 - .../todo-list-item.component.html | 20 ++++++++----------- .../todo-list-item.component.ts | 6 ------ .../todo/todo-list/todo-list.component.scss | 1 + .../content/apps/todo/todo.component.scss | 4 ++++ .../main/content/apps/todo/todo.service.ts | 2 -- .../components/widget/widget.component.html | 4 ++-- 17 files changed, 37 insertions(+), 42 deletions(-) diff --git a/src/app/core/components/theme-options/theme-options.component.scss b/src/app/core/components/theme-options/theme-options.component.scss index 950c472c..f01c54f4 100644 --- a/src/app/core/components/theme-options/theme-options.component.scss +++ b/src/app/core/components/theme-options/theme-options.component.scss @@ -32,7 +32,7 @@ @include media-breakpoint-down('xs') { top: -120px; - max-height: calc(100vh - 60px); + max-height: calc(100vh - 100px); width: 90vw; } diff --git a/src/app/main/content/apps/calendar/calendar.component.scss b/src/app/main/content/apps/calendar/calendar.component.scss index 4fc3c6a2..19500ca3 100644 --- a/src/app/main/content/apps/calendar/calendar.component.scss +++ b/src/app/main/content/apps/calendar/calendar.component.scss @@ -26,8 +26,8 @@ } .cal-open-day-events { - background: whitesmoke; - box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, 0.13); + background: #455A64; + box-shadow: inset 0 0 12px 0 rgba(0, 0, 0, 0.54); padding: 0; display: flex; flex-direction: column; @@ -44,11 +44,11 @@ transition: box-shadow 300ms ease; &:first-of-type { - margin-top: 24px; + margin-top: 16px; } &:last-of-type { - margin-bottom: 24px; + margin-bottom: 16px; } &:hover { diff --git a/src/app/main/content/apps/calendar/event-form/event-form.component.html b/src/app/main/content/apps/calendar/event-form/event-form.component.html index 3adb7c31..2bdc588a 100644 --- a/src/app/main/content/apps/calendar/event-form/event-form.component.html +++ b/src/app/main/content/apps/calendar/event-form/event-form.component.html @@ -66,7 +66,7 @@ - + @@ -80,7 +80,7 @@ - + diff --git a/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.html b/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.html index a2df3ca7..c788af9e 100644 --- a/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.html +++ b/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.html @@ -151,7 +151,6 @@ -
+
diff --git a/src/app/main/content/apps/contacts/sidenavs/main/main.component.scss b/src/app/main/content/apps/contacts/sidenavs/main/main.component.scss index 5c6b97f8..c239a34f 100644 --- a/src/app/main/content/apps/contacts/sidenavs/main/main.component.scss +++ b/src/app/main/content/apps/contacts/sidenavs/main/main.component.scss @@ -11,7 +11,7 @@ flex-direction: column; padding: 0; - @include media-breakpoint(gt-md) { + @include media-breakpoint(gt-sm) { padding: 24px 4px 24px 24px; } @@ -21,7 +21,7 @@ flex: 0 1 auto; padding: 0; - @include media-breakpoint(gt-md) { + @include media-breakpoint(gt-sm) { @include mat-elevation(4); } diff --git a/src/app/main/content/apps/dashboards/project/project.component.html b/src/app/main/content/apps/dashboards/project/project.component.html index 7d785fe9..6dc003d4 100644 --- a/src/app/main/content/apps/dashboards/project/project.component.html +++ b/src/app/main/content/apps/dashboards/project/project.component.html @@ -79,7 +79,8 @@
- @@ -121,7 +122,8 @@
- @@ -163,7 +165,8 @@
- @@ -204,7 +207,8 @@
- diff --git a/src/app/main/content/apps/mail/dialogs/compose/compose.component.html b/src/app/main/content/apps/mail/dialogs/compose/compose.component.html index aecdd630..ac423a74 100644 --- a/src/app/main/content/apps/mail/dialogs/compose/compose.component.html +++ b/src/app/main/content/apps/mail/dialogs/compose/compose.component.html @@ -21,7 +21,7 @@ type="email"> - + diff --git a/src/app/main/content/apps/scrumboard/board/dialogs/card/card.component.html b/src/app/main/content/apps/scrumboard/board/dialogs/card/card.component.html index 75e65ef5..2b7ca5d4 100644 --- a/src/app/main/content/apps/scrumboard/board/dialogs/card/card.component.html +++ b/src/app/main/content/apps/scrumboard/board/dialogs/card/card.component.html @@ -386,7 +386,6 @@
diff --git a/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.html b/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.html index 3782a525..aaecb99b 100644 --- a/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.html +++ b/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.html @@ -1,18 +1,16 @@
- + drag_handle + class="mr-16" fxFlex="0 1 auto">
-
+
{{todo.title}} @@ -25,9 +23,7 @@
-
-
{{tags | getById:tagId:'title'}}
@@ -37,20 +33,20 @@
- - diff --git a/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.ts b/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.ts index 5a4c2c76..765db6ca 100644 --- a/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.ts +++ b/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.ts @@ -78,40 +78,34 @@ export class FuseTodoListItemComponent implements OnInit, OnDestroy /** * Toggle star - * @param event */ toggleStar(event) { event.stopPropagation(); this.todo.toggleStar(); - this.todoService.updateTodo(this.todo); } /** * Toggle Important - * @param event */ toggleImportant(event) { event.stopPropagation(); this.todo.toggleImportant(); - this.todoService.updateTodo(this.todo); } /** * Toggle Completed - * @param event */ toggleCompleted(event) { event.stopPropagation(); this.todo.toggleCompleted(); - this.todoService.updateTodo(this.todo); } } diff --git a/src/app/main/content/apps/todo/todo-list/todo-list.component.scss b/src/app/main/content/apps/todo/todo-list/todo-list.component.scss index 8fb43255..6c063deb 100644 --- a/src/app/main/content/apps/todo/todo-list/todo-list.component.scss +++ b/src/app/main/content/apps/todo/todo-list/todo-list.component.scss @@ -5,4 +5,5 @@ overflow-y: auto; position: relative; padding: 0; + border-right: 1px solid rgba(0, 0, 0, .12); } diff --git a/src/app/main/content/apps/todo/todo.component.scss b/src/app/main/content/apps/todo/todo.component.scss index 903a75e5..b702ba18 100644 --- a/src/app/main/content/apps/todo/todo.component.scss +++ b/src/app/main/content/apps/todo/todo.component.scss @@ -39,6 +39,10 @@ @include media-breakpoint-down(lg) { + fuse-todo-list { + border-right: 0; + } + fuse-todo-list, fuse-todo-details { flex: 1 0 100%; diff --git a/src/app/main/content/apps/todo/todo.service.ts b/src/app/main/content/apps/todo/todo.service.ts index e91d84f1..bae4a873 100644 --- a/src/app/main/content/apps/todo/todo.service.ts +++ b/src/app/main/content/apps/todo/todo.service.ts @@ -381,8 +381,6 @@ export class TodoService implements Resolve this.getTodos().then(todos => { - this.setCurrentTodo(todo.id); - resolve(todos); }, reject); diff --git a/src/app/main/content/components/widget/widget.component.html b/src/app/main/content/components/widget/widget.component.html index bf6dc57b..46717337 100644 --- a/src/app/main/content/components/widget/widget.component.html +++ b/src/app/main/content/components/widget/widget.component.html @@ -45,7 +45,7 @@
@@ -86,7 +86,7 @@