From 00dd18302f8ff76ac2b097593bf675b76f733730 Mon Sep 17 00:00:00 2001 From: or-else Date: Sun, 25 Mar 2018 12:45:01 -0700 Subject: [PATCH] bug fix with unread count, css & html fixes --- css/base.css | 6 +++++- index.html | 15 +++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/css/base.css b/css/base.css index 1e2ab158..44ab2914 100644 --- a/css/base.css +++ b/css/base.css @@ -469,6 +469,9 @@ table.permission-editor td.checkbox { /* Sidepanel styles */ .panel-title { font-size: 1.4rem; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .caption-panel { @@ -477,7 +480,7 @@ table.permission-editor td.checkbox { flex: none; padding: 0.5rem; height: 4rem; - + white-space: nowrap; box-shadow: 0 1px 2px gray; z-index: 1; /* otherwise the shadow becomes invisible */ } @@ -643,6 +646,7 @@ table.permission-editor td.checkbox { .contact-box .contact-comment { text-overflow: ellipsis; overflow: hidden; + white-space: nowrap; font-weight: lighter; } diff --git a/index.html b/index.html index 1b89a06d..786313b9 100644 --- a/index.html +++ b/index.html @@ -1093,11 +1093,11 @@
- - -
+ autoComplete="email" value={this.state.email} onChange={this.handleEmailChange} required/>
-
@@ -1789,7 +1789,10 @@ var contacts = []; var totalUnread = 0; Tinode.getMeTopic().contacts(function(c) { - c.unread = (c.seq - c.read) || 0; + // Force to integers; + c.seq = ~~c.seq; + c.read = ~~c.read; + c.unread = c.seq - c.read; totalUnread += c.unread; contacts.push(c); }, this);