From 251732f221ab1e754c8f695a56062e3dcdd65776 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Thu, 12 Jul 2018 13:59:51 +0300 Subject: [PATCH 1/4] Updated changelog --- .../changelog/changelog.component.html | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/src/app/main/documentation/changelog/changelog.component.html b/src/app/main/documentation/changelog/changelog.component.html index cd38391e..67021fa4 100644 --- a/src/app/main/documentation/changelog/changelog.component.html +++ b/src/app/main/documentation/changelog/changelog.component.html @@ -34,16 +34,14 @@
Fixed
@@ -83,9 +81,7 @@
Fixed
From 4d4d52ba0547d5fbe2c57c12561682862a36e411 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Thu, 12 Jul 2018 15:48:55 +0300 Subject: [PATCH 2/4] (Navbar) Fixed: Style variant 2 doesn't scroll on Firefox, IE & Edge (Chat Panel) Fixed: Doesn't scroll on Firefox, IE & Edge Increased Fuse version --- package-lock.json | 2 +- package.json | 2 +- .../layout/components/chat-panel/chat-panel.component.html | 2 +- .../layout/components/chat-panel/chat-panel.component.scss | 4 ++++ src/app/layout/components/navbar/navbar.component.scss | 1 + .../components/navbar/vertical/style-1/style-1.component.scss | 2 ++ 6 files changed, 10 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2684398b..81f93b5f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "fuse", - "version": "6.2.2", + "version": "6.2.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index aad07bb5..9228826c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fuse", - "version": "6.2.2", + "version": "6.2.3", "license": "https://themeforest.net/licenses/terms/regular", "scripts": { "ng": "ng", diff --git a/src/app/layout/components/chat-panel/chat-panel.component.html b/src/app/layout/components/chat-panel/chat-panel.component.html index 84b4ee42..eab3cb96 100644 --- a/src/app/layout/components/chat-panel/chat-panel.component.html +++ b/src/app/layout/components/chat-panel/chat-panel.component.html @@ -28,7 +28,7 @@ -
+
diff --git a/src/app/layout/components/chat-panel/chat-panel.component.scss b/src/app/layout/components/chat-panel/chat-panel.component.scss index 9676ba32..91531744 100644 --- a/src/app/layout/components/chat-panel/chat-panel.component.scss +++ b/src/app/layout/components/chat-panel/chat-panel.component.scss @@ -34,6 +34,10 @@ chat-panel { } + .content { + min-height: 0; + } + #contacts-list { padding: 8px 0; overflow: auto; diff --git a/src/app/layout/components/navbar/navbar.component.scss b/src/app/layout/components/navbar/navbar.component.scss index 44ede0d8..e14eee3b 100644 --- a/src/app/layout/components/navbar/navbar.component.scss +++ b/src/app/layout/components/navbar/navbar.component.scss @@ -3,4 +3,5 @@ navbar { flex-direction: column; flex: 1 1 auto; width: 100%; + height: 100%; } diff --git a/src/app/layout/components/navbar/vertical/style-1/style-1.component.scss b/src/app/layout/components/navbar/vertical/style-1/style-1.component.scss index 147859a9..9bd0d98d 100644 --- a/src/app/layout/components/navbar/vertical/style-1/style-1.component.scss +++ b/src/app/layout/components/navbar/vertical/style-1/style-1.component.scss @@ -79,11 +79,13 @@ navbar { align-items: center; justify-content: space-between; min-height: 64px; + max-height: 64px; height: 64px; padding: 12px 12px 12px 20px; @include media-breakpoint('xs') { min-height: 56px; + max-height: 56px; height: 56px; } From b6ebd2b839f33f9049bea4a87b27eb51810adc19 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Thu, 12 Jul 2018 16:04:56 +0300 Subject: [PATCH 3/4] (Navbar) Fixed: IE11 issues (Chat Panel) Fixed: IE11 issues --- .../layout/components/chat-panel/chat-panel.component.scss | 2 ++ .../components/navbar/vertical/style-1/style-1.component.scss | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/app/layout/components/chat-panel/chat-panel.component.scss b/src/app/layout/components/chat-panel/chat-panel.component.scss index 91531744..034dfa9d 100644 --- a/src/app/layout/components/chat-panel/chat-panel.component.scss +++ b/src/app/layout/components/chat-panel/chat-panel.component.scss @@ -35,6 +35,7 @@ chat-panel { } .content { + flex: 1 1 100%; min-height: 0; } @@ -162,6 +163,7 @@ chat-panel { align-items: center; justify-content: center; padding: 12px; + max-width: 100%; .message { white-space: pre-wrap; diff --git a/src/app/layout/components/navbar/vertical/style-1/style-1.component.scss b/src/app/layout/components/navbar/vertical/style-1/style-1.component.scss index 9bd0d98d..d0af9829 100644 --- a/src/app/layout/components/navbar/vertical/style-1/style-1.component.scss +++ b/src/app/layout/components/navbar/vertical/style-1/style-1.component.scss @@ -41,6 +41,8 @@ fuse-sidebar { position: relative; top: auto; padding: 0; + transform: translateX(0); + left: auto; .avatar { width: 40px; @@ -136,6 +138,8 @@ navbar { top: 92px; border-radius: 50%; padding: 8px; + transform: translateX(-50%); + left: 50%; .avatar { width: 72px; From ffbd000fe2dcbe089338c4dc4d89776c21019f4d Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Thu, 12 Jul 2018 17:45:46 +0300 Subject: [PATCH 4/4] (Chat Panel) Style and logic tweaks --- .../chat-panel/chat-panel.component.html | 37 +++++++--- .../chat-panel/chat-panel.component.scss | 70 ++++++++++++++++--- .../chat-panel/chat-panel.component.ts | 51 ++++++++++---- 3 files changed, 128 insertions(+), 30 deletions(-) diff --git a/src/app/layout/components/chat-panel/chat-panel.component.html b/src/app/layout/components/chat-panel/chat-panel.component.html index eab3cb96..8828c5fe 100644 --- a/src/app/layout/components/chat-panel/chat-panel.component.html +++ b/src/app/layout/components/chat-panel/chat-panel.component.html @@ -2,7 +2,8 @@ -
+
chat

Team Chat

@@ -18,12 +19,14 @@ - -
@@ -37,7 +40,7 @@ class="contacts-list-item" [ngClass]="contact.status" [class.active]="contact.id === selectedContact?.id" - (click)="goToChat(contact)"> + (click)="toggleChat(contact)"> - +
chat @@ -87,11 +90,29 @@
Start a conversation by typing your message below.
+ + + + + +
+ +
+ chat +
+ +
+ Select a contact to start a conversation. +
+ +
+
-
+
{ + // Load the chat + this._chatPanelService.getChat(contact.id).then((chat) => { - // Set the chat - this.chat = chat; + // Set the chat + this.chat = chat; - // Prepare the chat for the replies - this._prepareChatForReplies(); - }); + // Prepare the chat for the replies + this._prepareChatForReplies(); + }); + } + } + + /** + * Remove the selected contact and unload the chat + */ + resetChat(): void + { + // Set the selected contact as null + this.selectedContact = null; + + // Set the chat as null + this.chat = null; } /**