File tree Expand file tree Collapse file tree
platforms/pictique/client/src/lib/fragments/Profile Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 </script >
3737
3838<div class =" flex flex-col gap-4 p-4" >
39- <div class =" flex items-center gap-4" >
39+ <div class =" flex flex-wrap items-center gap-4" >
4040 <img
4141 src ={profileData .avatarUrl ?? ' /images/user.png' }
4242 onerror ={() => {
4545 alt ={profileData .username }
4646 class =" h-20 w-20 rounded-full object-cover"
4747 />
48- <div class =" flex-1" >
48+ <div class =" min-w-0 flex-1" >
4949 <h2 class ="text-xl font-semibold" >{profileData ?.name ?? profileData ?.handle }</h2 >
5050 <p class ="text-gray-600" >{profileData ?.description }</p >
5151 </div >
5252 {#if variant === ' other' }
53- <div class =" flex gap-2" >
54- <div style ="transform: scale( {btnScale .current }); transition: transform 0.2s ease;" >
53+ <div class =" flex w-full gap-2 sm:w-auto" >
54+ <div
55+ class =" flex-1 sm:flex-initial"
56+ style ="transform: scale( {btnScale .current }); transition: transform 0.2s ease;"
57+ >
5558 <Button
5659 variant ={' primary' }
5760 size =" sm"
7780 </div >
7881 </Button >
7982 </div >
80- <Button variant ="primary" size ="sm" callback ={handleMessage }>Message</Button >
83+ <Button
84+ variant =" primary"
85+ size =" sm"
86+ callback ={handleMessage }
87+ class =" flex-1 sm:flex-initial" >Message</Button
88+ >
8189 </div >
8290 {/if }
8391 </div >
You can’t perform that action at this time.
0 commit comments