This commit is contained in:
May 2023-08-01 13:47:30 +00:00
parent f43162abef
commit 9f47a0f6ea

View file

@ -30,7 +30,7 @@
<div class="fileList"> <div class="fileList">
<!-- Probably wildly inefficient but who cares, I just wanna get this over with --> <!-- Probably wildly inefficient but who cares, I just wanna get this over with -->
{#each $files.filter(f => f.name.toLowerCase().includes(query.toLowerCase()) || f.id.toLowerCase().includes(query.toLowerCase()) || f.tag.includes(query.toLowerCase())) as file (file.id)} {#each $files.filter(f => f&&(f.filename.toLowerCase().includes(query.toLowerCase()) || f.id.toLowerCase().includes(query.toLowerCase()) || f.tag.includes(query.toLowerCase()))) as file (file.id)}
<div class="flFile" transition:fade={{duration:200}} animate:flip={{duration:200}}> <div class="flFile" transition:fade={{duration:200}} animate:flip={{duration:200}}>
<button class="hitbox" on:click={window.open(`/download/${file.id}`)}></button> <!-- this is bad, but I'm lazy --> <button class="hitbox" on:click={window.open(`/download/${file.id}`)}></button> <!-- this is bad, but I'm lazy -->
<div class="flexCont"> <div class="flexCont">