Make abuse reports scrollable in small screen

This commit is contained in:
2023-11-04 16:57:04 +01:00
parent 611a905da7
commit aa1b24cd71
2 changed files with 38 additions and 34 deletions

View File

@@ -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>

View File

@@ -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>