From 7995d7390485cf9e99f80e3d3d55dcd076d1dc84 Mon Sep 17 00:00:00 2001 From: sitara-dev Date: Wed, 14 Jun 2023 13:47:47 +0530 Subject: [PATCH 1/7] integrated emoji picker --- package.json | 1 + .../components/Channel/Chat/ChatInput.svelte | 16 ++++--- .../Channel/Chat/EmojiPicker.svelte | 42 +++++++++++++++++++ 3 files changed, 50 insertions(+), 9 deletions(-) create mode 100644 src/lib/components/Channel/Chat/EmojiPicker.svelte diff --git a/package.json b/package.json index b73ab839..9786d991 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,7 @@ "@tailwindcss/typography": "^0.5.9", "animate.css": "^4.1.1", "daisyui": "^3.1.0", + "emoji-picker-element": "^1.18.1", "nprogress": "^0.2.0", "playwright-e2e-coverage-report": "^1.0.28", "svelte-tags-input": "^5.0.0", diff --git a/src/lib/components/Channel/Chat/ChatInput.svelte b/src/lib/components/Channel/Chat/ChatInput.svelte index c8950cac..ee52080a 100644 --- a/src/lib/components/Channel/Chat/ChatInput.svelte +++ b/src/lib/components/Channel/Chat/ChatInput.svelte @@ -1,12 +1,13 @@ + +
+
+ + +
+
+ \ No newline at end of file From 4f69a9e754cb203c295bd805d2ffd1416a72eae3 Mon Sep 17 00:00:00 2001 From: sitara-dev Date: Wed, 14 Jun 2023 17:29:44 +0530 Subject: [PATCH 2/7] set margin left --- .../components/Channel/Chat/ChatInput.svelte | 2 +- .../Channel/Chat/EmojiPicker.svelte | 40 +++++++++++-------- 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/src/lib/components/Channel/Chat/ChatInput.svelte b/src/lib/components/Channel/Chat/ChatInput.svelte index ee52080a..4784e789 100644 --- a/src/lib/components/Channel/Chat/ChatInput.svelte +++ b/src/lib/components/Channel/Chat/ChatInput.svelte @@ -178,7 +178,7 @@ Enable AI - + + +
+
- - \ No newline at end of file + + \ No newline at end of file From 3a26546db07b451ef22c2f43948f3629b6930455 Mon Sep 17 00:00:00 2001 From: sitara-dev Date: Wed, 14 Jun 2023 17:51:14 +0530 Subject: [PATCH 3/7] fixed drawer width issue --- .../components/Channel/Chat/DrawerChat.svelte | 2 +- src/routes/channel/[channelId]/+page.svelte | 19 ++++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/lib/components/Channel/Chat/DrawerChat.svelte b/src/lib/components/Channel/Chat/DrawerChat.svelte index d3cb97f2..fa9e7dcf 100644 --- a/src/lib/components/Channel/Chat/DrawerChat.svelte +++ b/src/lib/components/Channel/Chat/DrawerChat.svelte @@ -74,7 +74,7 @@ -
+
{#each chatHistory as sender} diff --git a/src/routes/channel/[channelId]/+page.svelte b/src/routes/channel/[channelId]/+page.svelte index 7918079c..1dbd9bae 100644 --- a/src/routes/channel/[channelId]/+page.svelte +++ b/src/routes/channel/[channelId]/+page.svelte @@ -261,8 +261,8 @@ {#if channel && channel._id === $page.params.channelId} -
-
+
+
{#if !$is_chat_drawer_destroy} -