refactor: change the client from table to flexbox

this makes the server, channel, and member list a constant size, making the text messages take up the entire remaining width
this also fixes the text wrapping you have already fixed on one of your branches

this change is required if we want to make the member list toggelable, or channel list resizable
This commit is contained in:
Twig 2025-07-09 00:25:52 +02:00
parent a111180b52
commit 730b0cb1dc
No known key found for this signature in database
3 changed files with 46 additions and 58 deletions

View file

@ -91,9 +91,8 @@ function handleMemberClick(member: GuildMemberResponse) {
}
#members-container {
padding-top: 1dvh;
padding-left: 1dvw;
padding-right: 1dvw;
min-width: 12rem;
padding-top: 1em;
border-left: 1px solid var(--padding-color);
}
@ -102,14 +101,14 @@ function handleMemberClick(member: GuildMemberResponse) {
flex-direction: column;
overflow-y: scroll;
max-height: 92dvh;
padding-left: 1dvw;
padding-right: 1dvw;
padding-left: 1.3em;
padding-right: 1.3em;
margin-top: 1dvh;
}
.member-item {
display: grid;
grid-template-columns: 2dvw 1fr;
grid-template-columns: 1.5em 1fr;
margin-top: .5em;
margin-bottom: .5em;
gap: 1em;
@ -121,7 +120,7 @@ function handleMemberClick(member: GuildMemberResponse) {
#channels-list {
display: flex;
flex-direction: column;
gap: 1dvh;
gap: .5em;
}
.member-avatar {