Improve compose textarea styling
This commit is contained in:
parent
d6b0e5acda
commit
1fcb86cf06
2 changed files with 6 additions and 4 deletions
|
@ -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 {
|
||||||
|
|
9
main.js
9
main.js
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue