Commit 6739b508 authored by JC Brand's avatar JC Brand

Small css and text fixes

parent f7cf1fb7
...@@ -2037,7 +2037,8 @@ ...@@ -2037,7 +2037,8 @@
font-weight: normal; font-weight: normal;
padding: 0; padding: 0;
padding-bottom: 0.5em; padding-bottom: 0.5em;
text-shadow: 0 1px 0 #FAFAFA; } text-shadow: 0 1px 0 #FAFAFA;
word-wrap: break-word; }
#conversejs #controlbox #chatrooms .rooms-list-container dl.rooms-list .available-chatroom, #conversejs #controlbox #chatrooms .rooms-list-container dl.rooms-list .available-chatroom,
#conversejs #controlbox #chatrooms .rooms-list-container dl.rooms-list .open-chatroom { #conversejs #controlbox #chatrooms .rooms-list-container dl.rooms-list .open-chatroom {
border: none; border: none;
......
...@@ -2123,7 +2123,8 @@ body { ...@@ -2123,7 +2123,8 @@ body {
font-weight: normal; font-weight: normal;
padding: 0; padding: 0;
padding-bottom: 0.5em; padding-bottom: 0.5em;
text-shadow: 0 1px 0 #FAFAFA; } text-shadow: 0 1px 0 #FAFAFA;
word-wrap: break-word; }
#conversejs #controlbox #chatrooms .rooms-list-container dl.rooms-list .available-chatroom, #conversejs #controlbox #chatrooms .rooms-list-container dl.rooms-list .available-chatroom,
#conversejs #controlbox #chatrooms .rooms-list-container dl.rooms-list .open-chatroom { #conversejs #controlbox #chatrooms .rooms-list-container dl.rooms-list .open-chatroom {
border: none; border: none;
...@@ -2633,6 +2634,9 @@ body { ...@@ -2633,6 +2634,9 @@ body {
line-height: 22px; line-height: 22px;
width: 100%; } width: 100%; }
#conversejs #converse-roster {
padding-bottom: 3em; }
#conversejs #controlbox #chatrooms .bookmarks-list dl.rooms-list.bookmarks dd.available-chatroom a.open-room { #conversejs #controlbox #chatrooms .bookmarks-list dl.rooms-list.bookmarks dd.available-chatroom a.open-room {
width: 80%; } width: 80%; }
......
...@@ -205,6 +205,7 @@ ...@@ -205,6 +205,7 @@
padding: 0; padding: 0;
padding-bottom: 0.5em; padding-bottom: 0.5em;
text-shadow: 0 1px 0 $text-shadow-color; text-shadow: 0 1px 0 $text-shadow-color;
word-wrap: break-word;
} }
.available-chatroom, .available-chatroom,
.open-chatroom { .open-chatroom {
......
#conversejs #converse-roster {
padding-bottom: 3em;
}
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
@import "../controlbox"; @import "../controlbox";
@import "controlbox"; @import "controlbox";
@import "../roster"; @import "../roster";
@import "roster";
@import "../bookmarks"; @import "../bookmarks";
@import "bookmarks"; @import "bookmarks";
@import "../chatrooms"; @import "../chatrooms";
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
"tpl!chatroom_toolbar", "tpl!chatroom_toolbar",
"tpl!chatrooms_tab", "tpl!chatrooms_tab",
"tpl!info", "tpl!info",
"tpl!no_rooms",
"tpl!occupant", "tpl!occupant",
"tpl!room_description", "tpl!room_description",
"tpl!room_item", "tpl!room_item",
...@@ -58,6 +59,7 @@ ...@@ -58,6 +59,7 @@
tpl_chatroom_toolbar, tpl_chatroom_toolbar,
tpl_chatrooms_tab, tpl_chatrooms_tab,
tpl_info, tpl_info,
tpl_no_rooms,
tpl_occupant, tpl_occupant,
tpl_room_description, tpl_room_description,
tpl_room_item, tpl_room_item,
...@@ -2633,8 +2635,9 @@ ...@@ -2633,8 +2635,9 @@
informNoRoomsFound () { informNoRoomsFound () {
const chatrooms_el = this.el.querySelector('#available-chatrooms'); const chatrooms_el = this.el.querySelector('#available-chatrooms');
// For translators: %1$s is a variable and will be replaced with the XMPP server name chatrooms_el.innerHTML = tpl_no_rooms({
chatrooms_el.innerHTML = `<dt>${__('No rooms on %1$s', this.model.get('muc_domain'))}</dt>`; 'no_rooms_text': __('No rooms found')
});
const input_el = this.el.querySelector('input#show-rooms'); const input_el = this.el.querySelector('input#show-rooms');
input_el.classList.remove('hidden') input_el.classList.remove('hidden')
this.removeSpinner(); this.removeSpinner();
...@@ -2677,7 +2680,7 @@ ...@@ -2677,7 +2680,7 @@
}, },
updateRoomsList () { updateRoomsList () {
/* Send and IQ stanza to the server asking for all rooms /* Send an IQ stanza to the server asking for all rooms
*/ */
_converse.connection.sendIQ( _converse.connection.sendIQ(
$iq({ $iq({
......
<dt class="centered">{{{ o.no_rooms_text }}}</dt>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment