social icons + background size

This commit is contained in:
hamid zarghami
2025-08-17 11:14:29 +03:30
parent 521d53d1c8
commit 5c5df9556f
44 changed files with 218 additions and 73 deletions
+4 -6
View File
@@ -150,10 +150,11 @@ const UploadBoxDraggble: FC<Props> = (props: Props) => {
</div>
{
files.length > 0 || perviews ? (
(perviews && perviews.length > 0) || files.length > 0 ? (
<div className='mt-4 flex gap-4 items-center'>
{/* اگر preview از props وجود دارد، فقط previewها را نمایش بده */}
{
perviews && perviews.map((item, index) => {
perviews && perviews.length > 0 ? perviews.map((item, index) => {
return (
<div key={index} className='flex items-center gap-2'>
<div key={index} className='flex relative items-center gap-2'>
@@ -173,10 +174,7 @@ const UploadBoxDraggble: FC<Props> = (props: Props) => {
</div>
</div>
)
})
}
{
files.map((file, index) => {
}) : files.map((file, index) => {
if (props.isFile) {
return (
<div key={index} className='flex border p-2 rounded-lg items-center gap-2'>