File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
apps/web/@/molecules/post-form Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -120,17 +120,26 @@ const PostForm = ({ post: postData }: { post?: TPostItem }) => {
120120 </ div >
121121 </ div >
122122 < div className = "col-span-1" >
123- < div className = "relative rounded-lg border-2 p-2" >
123+ < div className = "relative overflow-hidden rounded-lg border-2 p-2" >
124124 < Upload onSelect = { setImage } >
125125 { image ? (
126- < div className = "relative" >
126+ < div className = "group relative cursor-pointer " >
127127 < Image
128128 src = { image . url }
129129 alt = "image"
130130 width = { 480 }
131131 height = { 270 }
132- className = "border-1 flex aspect-video w-full cursor-pointer rounded-sm object-cover"
132+ className = "border-1 flex aspect-video w-full rounded-sm object-cover hover:scale-90 hover:opacity-50 "
133133 />
134+ < div className = "invisible absolute inset-0 flex-col items-center justify-center gap-2 group-hover:flex" >
135+ < UploadIcon className = "invisible group-hover:visible" />
136+ < Typography
137+ className = "bold invisible group-hover:visible"
138+ variant = "mutedText"
139+ >
140+ { t ( "uploads.upload_image" ) }
141+ </ Typography >
142+ </ div >
134143 </ div >
135144 ) : (
136145 < div className = "border-1 flex aspect-video w-full cursor-pointer flex-col items-center justify-center gap-2 rounded-sm bg-slate-200" >
You can’t perform that action at this time.
0 commit comments