Improve Accessibility

This commit is contained in:
2025-10-31 14:31:29 +03:30
parent 25a968ba53
commit c423f5e624
3 changed files with 3 additions and 1 deletions

View File

@@ -60,6 +60,7 @@ function handleSubmit() {
<!-- Right circular button --> <!-- Right circular button -->
<button <button
class="ml-3 w-10 h-10 flex items-center justify-center rounded-full bg-primary text-accent hover:scale-110 transition-transform duration-300 shadow-md" class="ml-3 w-10 h-10 flex items-center justify-center rounded-full bg-primary text-accent hover:scale-110 transition-transform duration-300 shadow-md"
aria-label="Submit magnet link"
@click="handleSubmit" @click="handleSubmit"
> >
<svg <svg

View File

@@ -14,6 +14,7 @@ function handleFileChange(e: Event) {
<fieldset class="fieldset w-full max-w-2/3"> <fieldset class="fieldset w-full max-w-2/3">
<legend class="fieldset-legend">Pick a file</legend> <legend class="fieldset-legend">Pick a file</legend>
<input <input
id="torrent-file"
type="file" type="file"
class="file-input file-input-bordered w-full border-primary bg-base-100 file-input-md" class="file-input file-input-bordered w-full border-primary bg-base-100 file-input-md"
accept=".torrent,application/x-bittorrent" accept=".torrent,application/x-bittorrent"

View File

@@ -23,7 +23,7 @@ export default defineEventHandler(async (event) => {
id: maxedMagnet.xt.slice(9), id: maxedMagnet.xt.slice(9),
maxedMagnet: getMagnetUrl(maxedMagnet), maxedMagnet: getMagnetUrl(maxedMagnet),
}; };
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (error: any) { } catch (error: any) {
throw createError({ throw createError({
statusCode: 400, statusCode: 400,