From f27ecf1541d84d241eef27624709bd0e511812c9 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Mon, 20 Nov 2023 03:55:00 +0100 Subject: [PATCH] Remove connection-hash from UI for now --- public/scripts/ui.js | 4 +--- public/styles.css | 9 +-------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/public/scripts/ui.js b/public/scripts/ui.js index 3a6d05f..4e77684 100644 --- a/public/scripts/ui.js +++ b/public/scripts/ui.js @@ -436,14 +436,12 @@ class PeerUI {
-
`; this.$el.querySelector('svg use').setAttribute('xlink:href', this._icon()); this.$el.querySelector('.name').textContent = this._displayName(); this.$el.querySelector('.device-name').textContent = this._deviceName(); - this.$el.querySelector('.connection-hash').textContent = this._connectionHash; } addTypesToClassList() { @@ -1852,8 +1850,8 @@ class SendTextDialog extends Dialog { to: this.correspondingPeerId, text: this.$text.innerText }); - this.$text.innerText = ""; this.hide(); + setTimeout(() => this.$text.innerText = "", 300); } } diff --git a/public/styles.css b/public/styles.css index 4d5d777..7e760f5 100644 --- a/public/styles.css +++ b/public/styles.css @@ -558,18 +558,11 @@ x-peer[status] x-icon { } .status, -.device-name, -.connection-hash { - opacity: 0.7; -} - .device-name { + opacity: 0.7; white-space: nowrap; } -.connection-hash { - white-space: nowrap; -} x-peer:not([status]) .status, x-peer[status] .device-name {