From bec58ac59f9600e35385b9e21d174f3ab1b42b1d Mon Sep 17 00:00:00 2001 From: C4illin Date: Thu, 6 Feb 2025 19:57:07 +0100 Subject: [PATCH] fix: mobile view overflow --- src/index.tsx | 189 ++++++++++++++++++++++++++++++++++++++++++-------- src/main.css | 70 +++++++++---------- 2 files changed, 197 insertions(+), 62 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 4959944..e7274a9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -153,7 +153,12 @@ const app = new Elysia({ return ( -
+

Welcome to ConvertX!

@@ -217,7 +222,12 @@ const app = new Elysia({ accountRegistration={ACCOUNT_REGISTRATION} allowUnauthenticated={ALLOW_UNAUTHENTICATED} /> -
+
@@ -343,7 +353,12 @@ const app = new Elysia({ accountRegistration={ACCOUNT_REGISTRATION} allowUnauthenticated={ALLOW_UNAUTHENTICATED} /> -
+
@@ -556,7 +571,12 @@ const app = new Elysia({ allowUnauthenticated={ALLOW_UNAUTHENTICATED} loggedIn /> -
+

Convert

@@ -564,7 +584,7 @@ const app = new Elysia({ id="file-list" class={` w-full table-auto rounded bg-neutral-900 - [&_td]:p-4 + [&_td]:p-4 [&_td]:first:max-w-[30vw] [&_td]:first:truncate [&_tr]:rounded-sm [&_tr]:border-b [&_tr]:border-neutral-800 `} /> @@ -942,7 +962,8 @@ const app = new Elysia({ let userJobs = db .query("SELECT * FROM jobs WHERE user_id = ?") .as(Jobs) - .all(user.id); + .all(user.id) + .reverse(); for (const job of userJobs) { const files = db @@ -964,31 +985,75 @@ const app = new Elysia({ allowUnauthenticated={ALLOW_UNAUTHENTICATED} loggedIn /> -
+

Results

- - - - - + + + + + {userJobs.map((job) => ( - + - + - - - - + + + + {files.map((file) => ( - + - - - - + + + + {files.map((file) => ( - +
TimeFilesFiles DoneStatusView + Time + + Files + + Files Done + + Status + + View +
{job.date_created} + {job.date_created.split("T")[1]?.split(".")[0] ?? + job.date_created} + {job.num_files}{job.finished_files}{job.finished_files} {job.status} -
+

Results

@@ -1095,16 +1165,46 @@ const app = new Elysia({ >
Converted File NameStatusViewDownload + Converted File Name + + Status + + View + + Download +
{file.output_file_name} + {file.output_file_name} + {file.status}
Converted File NameStatusViewDownload + Converted File Name + + Status + + View + + Download +
{file.output_file_name} + {file.output_file_name} + {file.status} -
+

Converters