Skip to content

Commit

Permalink
Various style and positioning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbrand committed Jan 10, 2025
1 parent eb0be44 commit eedd4bb
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 33 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- #2980: Allow setting an avatar for MUCs
- #3033: Add the `muc_grouped_by_domain` option to display MUCs on the same domain in collapsible groups
- #3100: fixed width `.box-flyout` breaks responsive design in embedded, mobile viewport mode.
- #3038: Support showing yourself in the MUC sidebar. Adds new config option `muc_show_self`.
- #3155: Some ad-hoc commands not working
- #3155: Some adhoc commands aren't working
- #3299: Registration fails when a password contains an &
Expand Down
1 change: 1 addition & 0 deletions src/plugins/roomslist/styles/roomsgroups.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

converse-rooms-list {
display: block;
margin-bottom: 1em;

svg {
fill: var(--muc-color);
Expand Down
32 changes: 18 additions & 14 deletions src/plugins/rosterview/styles/roster.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -77,20 +84,19 @@
}
}

.current-xmpp-contact {
margin: 0.25em 0;
}

.list-item {

.list-item-link {
margin: 0;
}

&.requesting-xmpp-contact {
a {
line-height: var(--line-height);
}
}

.open-chat {
margin: 0;
padding: 0;
converse-icon.chat-status {
position: relative;
border: 2px solid var(--background-color);
Expand All @@ -108,8 +114,6 @@
}

.contact-name {
padding: 0;
margin: 0;
max-width: 85%;
float: none;
height: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/rosterview/templates/requesting_contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default (el) => {
${num_unread ? html`<span class="msgs-indicator badge">${num_unread}</span>` : ''}
<span class="contact-name ${num_unread ? 'unread-msgs' : ''}">${display_name}</span>
</a>
<span>
<span class="contact-actions">
<a
class="accept-xmpp-request list-item-action list-item-action--visible"
@click=${el.acceptRequest}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/rosterview/templates/unsaved_contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default (el) => {
${num_unread ? html`<span class="msgs-indicator badge">${num_unread}</span>` : ''}
<span class="contact-name ${num_unread ? 'unread-msgs' : ''}">${display_name}</span>
</a>
<span>
<span class="contact-actions">
<a
class="add-contact list-item-action"
@click="${(ev) => el.addContact(ev)}"
Expand Down
20 changes: 3 additions & 17 deletions src/shared/styles/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,6 @@
color: var(--text-color);
background-color: var(--background-color);
}

&::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color: var(--secondary-color);
}
&::-moz-placeholder { /* Firefox 19+ */
color: var(--secondary-color);
}
&:-ms-input-placeholder { /* IE 10+ */
color: var(--secondary-color);
}
&:-moz-placeholder { /* Firefox 18- */
color: var(--secondary-color);
}
&::placeholder {
color: var(--secondary-color);
}
Expand All @@ -55,12 +42,11 @@

.btn-group {
.clear-input {
margin-top: 0.5em;
margin-bottom : 0.5em;
position: absolute;
right: 0.2em;
cursor: pointer;
font-size: var(--font-size);
margin-top: 0.4em;
position: absolute;
right: 0.2em;
}
}

Expand Down

0 comments on commit eedd4bb

Please sign in to comment.