From 582bc71b996a9828c6f18d6003e540013815f1ca Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 12 Feb 2020 15:50:23 +1100 Subject: [PATCH 1/3] Contacts section reformatting --- _locales/en/messages.json | 3 +++ stylesheets/_session_left_pane.scss | 18 ++++++++++---- .../session/LeftPaneSectionHeader.tsx | 24 +++++++++++++++++-- 3 files changed, 38 insertions(+), 7 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 34a519aa4..e7a051888 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -2626,6 +2626,9 @@ "newSession": { "message": "New Session" }, + "freindRequestsButton": { + "message": "Requests" + }, "searchForAKeyPhrase": { "message": "Search for a key phrase or contact" }, diff --git a/stylesheets/_session_left_pane.scss b/stylesheets/_session_left_pane.scss index 1497c4238..70f3ad947 100644 --- a/stylesheets/_session_left_pane.scss +++ b/stylesheets/_session_left_pane.scss @@ -178,6 +178,8 @@ $session-compose-margin: 20px; &__header { display: flex; flex-direction: row; + justify-content: space-between; + align-items: center; padding: 15px 7px 14px 0px; height: 63px; @@ -461,11 +463,13 @@ $session-compose-margin: 20px; } .contact-notification-count-bubble { + display: flex; + align-items: center; + justify-content: center; background: $session-color-danger; - line-height: 30px; - width: 30px; - height: 30px; - font-size: 14px; + width: 22px; + height: 22px; + font-size: $session-font-xs; margin-left: auto; text-align: center; border-radius: 50%; @@ -488,7 +492,11 @@ $session-compose-margin: 20px; .module-conversation-list-item { background-color: $session-shade-4; - + + &--is-selected { + background-color: $session-shade-5; + } + &--has-friend-request { &:first-child { border-top: none !important; diff --git a/ts/components/session/LeftPaneSectionHeader.tsx b/ts/components/session/LeftPaneSectionHeader.tsx index 064b7d2cb..f5f33cddf 100644 --- a/ts/components/session/LeftPaneSectionHeader.tsx +++ b/ts/components/session/LeftPaneSectionHeader.tsx @@ -79,15 +79,35 @@ export class LeftPaneSectionHeader extends React.Component { ); } - if (buttonLabel) { + if (buttonLabel && !notificationCount) { children.push( ); + } else if (buttonLabel && notificationCount && notificationCount > 0) { + const shortenedNotificationCount = + notificationCount > 9 ? 9 : notificationCount; + children.push( +
+ +
+ {shortenedNotificationCount} +
+
+ ); } else if (notificationCount && notificationCount > 0) { const shortenedNotificationCount = notificationCount > 9 ? 9 : notificationCount; From 7b674bb8d8bda4a5172b4c0dfc76779bda848973 Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 12 Feb 2020 17:27:14 +1100 Subject: [PATCH 2/3] Various UI improvements --- about.html | 4 ++-- background.html | 1 - stylesheets/_modules.scss | 1 + stylesheets/_session.scss | 8 ++++++-- stylesheets/_session_left_pane.scss | 12 ++++++++---- ts/components/session/ActionsPanel.tsx | 10 +++++----- 6 files changed, 22 insertions(+), 14 deletions(-) diff --git a/about.html b/about.html index 7e296de61..6c1a9ddf8 100644 --- a/about.html +++ b/about.html @@ -39,11 +39,11 @@
- loki.network + loki.network

- Terms & Privacy Policy + Terms & Privacy Policy
diff --git a/background.html b/background.html index b1ba2769d..785d40ec2 100644 --- a/background.html +++ b/background.html @@ -40,7 +40,6 @@