➕ New css making channel buttons not ugly as hell
➕ Moving channels.list behind async call ✨ Moved server-name to top of dom to reduce clutter(i think)
This commit is contained in:
parent
ddb08818b1
commit
7fede3b4e1
@ -14,7 +14,7 @@
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||
<a class="navbar-brand">
|
||||
<img src="../assets/logo.png" width="30" height="30" class="d-inline-block align-top" loading="lazy">
|
||||
Freechat
|
||||
<span id="server-name">Freechat</span>
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-opts" aria-controls="navbar-opts" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
@ -31,8 +31,7 @@
|
||||
|
||||
<div class="wrapper" id="content-container">
|
||||
<nav>
|
||||
<div class="channels-list-header"><h3 id="server-name"></h3></div>
|
||||
<ul class="list-unstyled components" id="channels-list">
|
||||
<ul class="components channel-container" id="channels-list">
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
@ -148,7 +147,7 @@
|
||||
})
|
||||
)
|
||||
|
||||
$(`#${id}`).on('click', () => channels.list(remote, user))
|
||||
$(`#${id}`).on('click', async () => await channels.list(remote, user))
|
||||
}
|
||||
} catch(err) {
|
||||
console.log(err)
|
||||
|
@ -1,5 +1,16 @@
|
||||
@import 'general';
|
||||
|
||||
.channel-container {
|
||||
text-align: center;
|
||||
list-style: none;
|
||||
padding-inline-start: 0;
|
||||
width: 12em;
|
||||
}
|
||||
|
||||
.channel-btn {
|
||||
width: 75%;
|
||||
}
|
||||
|
||||
.channel {
|
||||
color: $text;
|
||||
background-color: $top-grey;
|
||||
|
Loading…
Reference in New Issue
Block a user