From 6db6381279e166b64147771867f15e1f9b9618ba Mon Sep 17 00:00:00 2001 From: Phillip Date: Fri, 11 Aug 2023 03:16:00 +0300 Subject: [PATCH] fix code block text color and members pagination --- core/font/switch-theme.css | 2 ++ plugins/plugins/core/components/ChatPage.js | 2 +- plugins/plugins/core/components/ChatScroller.js | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/font/switch-theme.css b/core/font/switch-theme.css index 4d308e76..7a0f6a9e 100644 --- a/core/font/switch-theme.css +++ b/core/font/switch-theme.css @@ -64,6 +64,7 @@ html { --app-background-2: #09c6f9; --app-icon: #ffffff; --app-hr: rgba(0, 0, 0, .3); + --code-block-text-color: #008fd5; } html[theme="dark"] { @@ -132,4 +133,5 @@ html[theme="dark"] { --app-background-2: #0d324d; --app-icon: #03a9f4; --app-hr: rgba(255, 255, 255, .3); + --code-block-text-color: #008fd5; } \ No newline at end of file diff --git a/plugins/plugins/core/components/ChatPage.js b/plugins/plugins/core/components/ChatPage.js index c11f2aa8..26fb0be5 100644 --- a/plugins/plugins/core/components/ChatPage.js +++ b/plugins/plugins/core/components/ChatPage.js @@ -1880,7 +1880,7 @@ class ChatPage extends LitElement { return memberItem }) const membersWithName = await Promise.all(getMembersWithName) - this.groupMembers = membersWithName + this.groupMembers = [...this.groupMembers, ...membersWithName] this.pageNumber = this.pageNumber + 1 } catch (error) { } diff --git a/plugins/plugins/core/components/ChatScroller.js b/plugins/plugins/core/components/ChatScroller.js index f5ee24de..e1506232 100644 --- a/plugins/plugins/core/components/ChatScroller.js +++ b/plugins/plugins/core/components/ChatScroller.js @@ -101,7 +101,7 @@ function processText(input) { // Store the URL in a data attribute link.setAttribute('data-url', part) link.textContent = part - link.style.color = 'var(--nav-text-color)' + link.style.color = 'var(--code-block-text-color)' link.style.textDecoration = 'underline' link.style.cursor = 'pointer' @@ -125,7 +125,7 @@ function processText(input) { url: `qdn/browser/index.html${query}`, id: uid(), myPlugObj: { - "url": service === 'WEBSITE' ? "websites" : "qapps", + "url": "myapp", "domain": "core", "page": `qdn/browser/index.html${query}`, "title": name,