mirror of
https://github.com/owncast/owncast.git
synced 2024-11-23 05:14:20 +03:00
changed followers tab to 24 per page (#1855)
* changed followers tab to 24 per page * Update followers.js fixed noFollowers message not spanning
This commit is contained in:
parent
7935bcf5f3
commit
635e872be3
2 changed files with 4 additions and 4 deletions
|
@ -24,7 +24,7 @@ export default class FollowerList extends Component {
|
||||||
|
|
||||||
async getFollowers() {
|
async getFollowers() {
|
||||||
const { currentPage } = this.state;
|
const { currentPage } = this.state;
|
||||||
const limit = 16;
|
const limit = 24;
|
||||||
const offset = currentPage * limit;
|
const offset = currentPage * limit;
|
||||||
const u = `${URL_FOLLOWERS}?offset=${offset}&limit=${limit}`;
|
const u = `${URL_FOLLOWERS}?offset=${offset}&limit=${limit}`;
|
||||||
const response = await fetch(u);
|
const response = await fetch(u);
|
||||||
|
@ -47,7 +47,7 @@ export default class FollowerList extends Component {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const noFollowersInfo = html`<div>
|
const noFollowersInfo = html`<div class="col-span-4">
|
||||||
<p class="mb-5 text-2xl">Be the first to follow this live stream.</p>
|
<p class="mb-5 text-2xl">Be the first to follow this live stream.</p>
|
||||||
<p class="text-md">
|
<p class="text-md">
|
||||||
By following this stream you'll get updates when it goes live, receive
|
By following this stream you'll get updates when it goes live, receive
|
||||||
|
@ -81,7 +81,7 @@ export default class FollowerList extends Component {
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<div>
|
<div>
|
||||||
<div class="flex flex-wrap">
|
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
|
||||||
${followers.length === 0 && noFollowersInfo}
|
${followers.length === 0 && noFollowersInfo}
|
||||||
${followers.map((follower) => {
|
${followers.map((follower) => {
|
||||||
return html` <${SingleFollower} user=${follower} /> `;
|
return html` <${SingleFollower} user=${follower} /> `;
|
||||||
|
|
|
@ -558,7 +558,7 @@ header {
|
||||||
}
|
}
|
||||||
|
|
||||||
.following-list-follower {
|
.following-list-follower {
|
||||||
width: 280px;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#follow-loading-spinner-container {
|
#follow-loading-spinner-container {
|
||||||
|
|
Loading…
Reference in a new issue