Make abuse reports scrollable in small screen
This commit is contained in:
@@ -71,6 +71,7 @@ let set_status = async (action, report_type) => {
|
|||||||
></iframe>
|
></iframe>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="table_scroll">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Time</td>
|
<td>Time</td>
|
||||||
@@ -102,7 +103,7 @@ let set_status = async (action, report_type) => {
|
|||||||
{#if user_report.description !== ""}
|
{#if user_report.description !== ""}
|
||||||
<tr>
|
<tr>
|
||||||
<td>Description</td>
|
<td>Description</td>
|
||||||
<td colspan="4" style="white-space: pre;">
|
<td colspan="5" style="white-space: pre-wrap; word-wrap: break-word;">
|
||||||
{user_report.description}
|
{user_report.description}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -110,6 +111,7 @@ let set_status = async (action, report_type) => {
|
|||||||
{/each}
|
{/each}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</Expandable>
|
</Expandable>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@@ -139,7 +139,7 @@ const remove_report = (id = "") => {
|
|||||||
|
|
||||||
// If a refresh is already scheduled we remove it and schedule a new one
|
// If a refresh is already scheduled we remove it and schedule a new one
|
||||||
clearTimeout(refresh_timeout)
|
clearTimeout(refresh_timeout)
|
||||||
refresh_timeout = setTimeout(get_reports, 5000)
|
refresh_timeout = setTimeout(get_reports, 10000)
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
@@ -151,6 +151,8 @@ onMount(() => {
|
|||||||
endPicker.valueAsNumber = end.getTime()
|
endPicker.valueAsNumber = end.getTime()
|
||||||
|
|
||||||
get_reports()
|
get_reports()
|
||||||
|
|
||||||
|
return () => clearTimeout(refresh_timeout)
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user