From 59f4829fa909afb55c173ef8759d64477f18b8a5 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Thu, 30 Dec 2021 20:35:56 -0600 Subject: [PATCH] moved q to archive It's been fun while it lasted! --- {src/client/webapp => archive}/q-module.ts | 0 .../elements-styles/lists/components/message-element.scss | 3 ++- src/client/webapp/util.ts | 8 -------- 3 files changed, 2 insertions(+), 9 deletions(-) rename {src/client/webapp => archive}/q-module.ts (100%) diff --git a/src/client/webapp/q-module.ts b/archive/q-module.ts similarity index 100% rename from src/client/webapp/q-module.ts rename to archive/q-module.ts diff --git a/src/client/webapp/elements-styles/lists/components/message-element.scss b/src/client/webapp/elements-styles/lists/components/message-element.scss index 4d73646..8d210f0 100644 --- a/src/client/webapp/elements-styles/lists/components/message-element.scss +++ b/src/client/webapp/elements-styles/lists/components/message-element.scss @@ -3,6 +3,7 @@ .message-react { display: flex; padding: 4px 16px; + user-select: text; &.continued { margin-top: -4px; @@ -33,7 +34,6 @@ flex-flow: column; align-items: flex-start; margin-left: 16px; /* putting the margin here rather than on the avatar makes selecting better */ - user-select: text; } .header { @@ -61,6 +61,7 @@ color: theme.$text-muted; margin-left: 4px; white-space: nowrap; + user-select: none; } .content { diff --git a/src/client/webapp/util.ts b/src/client/webapp/util.ts index 7233974..8e478af 100644 --- a/src/client/webapp/util.ts +++ b/src/client/webapp/util.ts @@ -8,14 +8,6 @@ import * as path from 'path'; import * as socketio from 'socket.io-client'; -interface WithPotentialErrorParams { - taskFunc: (() => Promise), - errorIndicatorAddFunc: ((element: Element) => Promise), - errorContainer: HTMLElement, - errorClasses?: string[], - errorMessage: string, -} - export default class Util { static async exists(path: string): Promise { // Check if a file exists