file copying & open in new tab + tailwind-scrollbar

This commit is contained in:
grngxd 2025-06-08 17:18:54 +01:00
parent 6089c569a1
commit 33c3bd1a2c
7 changed files with 87 additions and 15 deletions

View file

@ -26,16 +26,22 @@ export default component$(() => {
<Controlbar />
<a href={OAUTH_LINK}>oauth</a>
<div class="grid grid-cols-4 gap-4 p-4 mb-18">
{/* TODO: make ts better :broken_heart: */}
{!loaded.value ? <p>Loading...</p> : (
files.value.length === 0 ? ( <p> no files found fr </p> )
: files.value.map((file) => (
<File key={file.ID} file={file} />
))
{!loaded.value ? (
<p>loading</p>
) : (
files.value.length === 0 ? (
<p> no files found fr </p>
)
: (
<div class="grid grid-cols-4 gap-4 p-4 mb-18">
{files.value.map((file) => (
<File key={file.ID} file={file} />
))}
</div>
)
)}
</div>
</>
);
});

View file

@ -2,7 +2,7 @@ import { component$, Slot } from '@builder.io/qwik';
export default component$(() => {
return (
<div class="flex flex-col min-h-screen bg-neutral-950 text-white">
<div class="flex flex-col min-h-screen bg-neutral-950 text-white scrollbar-thin overflow-scroll">
<Slot />
</div>
);