From 6b1bddf989f043d22e42808d4513b44e94494dba Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 10 Jan 2025 08:39:33 +0200 Subject: [PATCH] Various style and positioning fixes --- src/plugins/roomslist/styles/roomsgroups.scss | 1 + src/plugins/rosterview/styles/roster.scss | 32 +++++++++++-------- .../templates/requesting_contact.js | 2 +- .../rosterview/templates/unsaved_contact.js | 2 +- src/shared/styles/forms.scss | 20 ++---------- 5 files changed, 24 insertions(+), 33 deletions(-) diff --git a/src/plugins/roomslist/styles/roomsgroups.scss b/src/plugins/roomslist/styles/roomsgroups.scss index 2f302f95ab..e1378d50b2 100644 --- a/src/plugins/roomslist/styles/roomsgroups.scss +++ b/src/plugins/roomslist/styles/roomsgroups.scss @@ -14,6 +14,7 @@ converse-rooms-list { display: block; + margin-bottom: 1em; svg { fill: var(--muc-color); diff --git a/src/plugins/rosterview/styles/roster.scss b/src/plugins/rosterview/styles/roster.scss index 99a6809b2d..a6071baa2c 100644 --- a/src/plugins/rosterview/styles/roster.scss +++ b/src/plugins/rosterview/styles/roster.scss @@ -46,21 +46,28 @@ converse-roster-contact { width: 100%; + margin: 0; + padding: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: flex; justify-content: space-between; - .list-item-action { - line-height: 2em; - } - - &:hover { + .contact-actions { .list-item-action { - opacity: 1; + line-height: 2em; + } + &:hover { + .list-item-action { + opacity: 1; + } + } + converse-icon { + padding-top: 0.5em; } } + } .group-toggle { @@ -77,11 +84,12 @@ } } - .current-xmpp-contact { - margin: 0.25em 0; - } - .list-item { + + .list-item-link { + margin: 0; + } + &.requesting-xmpp-contact { a { line-height: var(--line-height); @@ -89,8 +97,6 @@ } .open-chat { - margin: 0; - padding: 0; converse-icon.chat-status { position: relative; border: 2px solid var(--background-color); @@ -108,8 +114,6 @@ } .contact-name { - padding: 0; - margin: 0; max-width: 85%; float: none; height: 100%; diff --git a/src/plugins/rosterview/templates/requesting_contact.js b/src/plugins/rosterview/templates/requesting_contact.js index ff279625a0..6d3a0e850a 100644 --- a/src/plugins/rosterview/templates/requesting_contact.js +++ b/src/plugins/rosterview/templates/requesting_contact.js @@ -34,7 +34,7 @@ export default (el) => { ${num_unread ? html`${num_unread}` : ''} ${display_name} - + { ${num_unread ? html`${num_unread}` : ''} ${display_name} - +