Improve compose textarea styling

This commit is contained in:
Midgard 2020-03-30 17:29:43 +02:00
parent d6b0e5acda
commit 1fcb86cf06
Signed by: midgard
GPG key ID: 511C112F1331BBB4
2 changed files with 6 additions and 4 deletions

View file

@ -175,6 +175,7 @@ ul#server_selection_list {
width: 100%; width: 100%;
resize: none; resize: none;
overflow: hidden; overflow: hidden;
padding: 0.2em 0.3em;
} }
#login { #login {

View file

@ -390,11 +390,7 @@ function switchToChannel(client, team, channel) {
} }
} }
const [title, elements] = channelNameElements(team, channel);
byId("channel_header").innerHTML = "";
byId("channel_header").append(...elements);
byId("channel_contents").innerText = "Loading…"; byId("channel_contents").innerText = "Loading…";
client.channelPosts(channel.id) client.channelPosts(channel.id)
.then(response => { .then(response => {
console.info(`Got channel contents of ${channel.id} (${channel.name})`); console.info(`Got channel contents of ${channel.id} (${channel.name})`);
@ -404,6 +400,11 @@ function switchToChannel(client, team, channel) {
console.error(error); console.error(error);
byId("channel_contents").innerText = `Failed to get channel contents:\n${error.message}`; byId("channel_contents").innerText = `Failed to get channel contents:\n${error.message}`;
}); });
const [title, elements] = channelNameElements(team, channel);
byId("channel_header").innerHTML = "";
byId("channel_header").append(...elements);
byId("compose").setAttribute("placeholder", `Write to ${byId("channel_header").textContent}`);
} }
function updateComposeHeight() { function updateComposeHeight() {