This repository was archived by the owner on Mar 27, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from "react" ;
2- import { Directory , Filesystem , FilesystemDirectory } from "@capacitor/filesystem" ;
2+ import {
3+ Directory ,
4+ Filesystem ,
5+ FilesystemDirectory ,
6+ } from "@capacitor/filesystem" ;
37import Icon from "@/components/UI/Icon" ;
48
5-
69interface FileUploadProps {
710 onFileUpload : ( fileUrl : string , fileName : string ) => void ;
811 noteId : string ;
@@ -88,22 +91,22 @@ const FileUploadComponent: React.FC<FileUploadProps> = ({
8891 { /* Conditionally render content based on `menu` value */ }
8992 { menu ? (
9093 < div
91- className = "flex items-center p-2 rounded-lg text-black dark:text-[color:var(--selected-dark-text)] cursor-pointer hover:bg-neutral-100 dark:hover:bg-[#353333] transition duration-200 "
94+ className = "flex items-center rounded-lg transition"
9295 aria-label = { translations . menu . file || "Upload File" }
9396 >
9497 < label
9598 htmlFor = "file-upload-input"
96- className = "flex items-center cursor-pointer "
99+ className = "text-left flex overflow-hidden text-ellipsis whitespace-nowrap "
97100 aria-label = { translations . menu . file || "Upload a file" }
98101 >
99102 { /* Icon */ }
100- < Icon name = "File" />
103+ < Icon name = "File" className = { `mr-2 ltr:ml-2 text-lg` } />
101104
102105 { /* Text Container */ }
103106 < div className = "flex flex-col text-left" >
104107 < h3
105- className = "font-medium text-neutral-900 dark:text-[color:var(--selected-dark-text)] "
106- aria-hidden = "true" // Hidden from screen readers
108+ className = "text-lg font-medium "
109+ aria-hidden = "true"
107110 >
108111 { translations . menu . file || "Upload File" }
109112 </ h3 >
Original file line number Diff line number Diff line change 11import React from "react" ;
2- import { Directory , Filesystem , FilesystemDirectory } from "@capacitor/filesystem" ;
2+ import {
3+ Directory ,
4+ Filesystem ,
5+ FilesystemDirectory ,
6+ } from "@capacitor/filesystem" ;
37import Icon from "@/components/UI/Icon" ;
48
59interface ImageUploadProps {
@@ -100,20 +104,18 @@ const ImageUploadComponent: React.FC<ImageUploadProps> = ({
100104 < div >
101105 { /* Conditionally render content based on `menu` value */ }
102106 { menu ? (
103- < div className = "flex items-center p-2 rounded-lg text-black dark:text-[color:var(--selected-dark-text)] cursor-pointer hover:bg-neutral-100 dark:hover:bg-[#353333] transition duration-200 " >
107+ < div className = "flex items-center rounded-lg transition" >
104108 < button
105109 onClick = { triggerFileInput }
106110 className = "flex items-center cursor-pointer"
107111 aria-label = { translations . menu . image }
108112 >
109113 { /* Icon */ }
110- < Icon name = "ImageLine" />
114+ < Icon name = "ImageLine" className = { `mr-2 ltr:ml-2 text-lg` } />
111115
112116 { /* Text Container */ }
113117 < div className = "flex flex-col text-left" >
114- < h3 className = "font-medium text-neutral-900 dark:text-[color:var(--selected-dark-text)]" >
115- { translations . menu . image }
116- </ h3 >
118+ < h3 className = "text-lg font-medium" > { translations . menu . image } </ h3 >
117119 </ div >
118120 </ button >
119121
Original file line number Diff line number Diff line change 11import React from "react" ;
2- import { Directory , Filesystem , FilesystemDirectory } from "@capacitor/filesystem" ;
2+ import {
3+ Directory ,
4+ Filesystem ,
5+ FilesystemDirectory ,
6+ } from "@capacitor/filesystem" ;
37import Icon from "@/components/UI/Icon" ;
48
59interface FileUploadProps {
@@ -78,7 +82,7 @@ const VideoUploadComponent: React.FC<FileUploadProps> = ({
7882 < div >
7983 { /* Conditionally render content based on `menu` value */ }
8084 { menu ? (
81- < div className = "flex items-center p-2 rounded-lg text-black dark:text-[color:var(--selected-dark-text)] cursor-pointer hover:bg-neutral-100 dark:hover:bg-[#353333] transition duration-200 " >
85+ < div className = "flex items-center rounded-lg transition" >
8286 < button
8387 onClick = { ( ) => {
8488 const inputElement = document . getElementById (
@@ -88,17 +92,15 @@ const VideoUploadComponent: React.FC<FileUploadProps> = ({
8892 inputElement . click ( ) ;
8993 }
9094 } }
91- className = "flex items-center"
95+ className = "flex items-center cursor-pointer "
9296 aria-label = { translations . menu . video }
9397 >
9498 { /* Icon */ }
95- < Icon name = "Video" />
99+ < Icon name = "Video" className = { `mr-2 ltr:ml-2 text-lg` } />
96100
97101 { /* Text Container */ }
98102 < div className = "flex flex-col text-left" >
99- < h3 className = "font-medium text-neutral-900 dark:text-[color:var(--selected-dark-text)]" >
100- { translations . menu . video }
101- </ h3 >
103+ < h3 className = "text-lg font-medium" > { translations . menu . video } </ h3 >
102104 </ div >
103105 </ button >
104106
You can’t perform that action at this time.
0 commit comments