File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,7 @@ defmodule UploadsWeb.UploadLive do
3434 % {
3535 path: path ,
3636 src: ~p" /uploads/#{ Path . basename ( path ) } " ,
37- size: file_size ( path ) ,
38- count: count_files ( path )
37+ size: file_size ( path )
3938 }
4039 end
4140
@@ -108,20 +107,12 @@ defmodule UploadsWeb.UploadLive do
108107 < h2 class = "font-bold text-2xl my-2 " > Uploads</ h2 >
109108
110109 < div class = "flex flex-wrap gap-1 " >
111- < img
112- :for = { u <- @ uploaded_files }
113- :if = { is_nil ( u . count ) }
114- src = { u . src }
115- class = "aspect-square w-[200px] object-cover "
116- />
117-
118110 < div
119111 :for = { u <- @ uploaded_files }
120- :if = { u . count }
121112 class = "bg-gray-100 aspect-square w-[200px] shrink-0 flex flex-col justify-center items-center "
122113 >
123114 < p class = "font-bold " > { Path . basename ( u . path ) } </ p >
124- < p > < span title = { "#{ u . size } bytes" } > { format_bytes ( u . size ) } </ span > , { u . count } files </ p >
115+ < p > < span title = { "#{ u . size } bytes" } > { format_bytes ( u . size ) } </ span > </ p >
125116 </ div >
126117 </ div >
127118 </ div >
You can’t perform that action at this time.
0 commit comments