Make IP ban table scrollable

This commit is contained in:
2022-01-17 15:46:36 +01:00
parent 7777bf3810
commit 452b60b193
2 changed files with 27 additions and 25 deletions

View File

@@ -157,6 +157,7 @@ onMount(get_bans);
<i class="icon">delete</i> <i class="icon">delete</i>
</button> </button>
</div> </div>
<div class="table_scroll">
<table> <table>
<tr> <tr>
<td>Reason</td> <td>Reason</td>
@@ -181,6 +182,7 @@ onMount(get_bans);
</tr> </tr>
{/each} {/each}
</table> </table>
</div>
</Expandable> </Expandable>
{/each} {/each}
</section> </section>

View File

@@ -49,14 +49,14 @@ onMount(() => {
class:button_highlight={page === "abuse_reports"} class:button_highlight={page === "abuse_reports"}
on:click|preventDefault={() => {navigate("abuse_reports", "Abuse reports")}}> on:click|preventDefault={() => {navigate("abuse_reports", "Abuse reports")}}>
<i class="icon">flag</i> <i class="icon">flag</i>
User abuse reports User reports
</a> </a>
<a class="button" <a class="button"
href="/admin/abuse_reporters" href="/admin/abuse_reporters"
class:button_highlight={page === "abuse_reporters"} class:button_highlight={page === "abuse_reporters"}
on:click|preventDefault={() => {navigate("abuse_reporters", "Abuse reporters")}}> on:click|preventDefault={() => {navigate("abuse_reporters", "Abuse reporters")}}>
<i class="icon">email</i> <i class="icon">email</i>
E-mail abuse reporters E-mail reporters
</a> </a>
<a class="button" <a class="button"
href="/admin/ip_bans" href="/admin/ip_bans"
@@ -74,7 +74,7 @@ onMount(() => {
</a> </a>
<a class="button" href="/admin/globals"> <a class="button" href="/admin/globals">
<i class="icon">edit</i> <i class="icon">edit</i>
Update global settings Global settings
</a> </a>
</div> </div>
</header> </header>