@@ -34,33 +34,31 @@ defmodule AlgoraWeb.Components.UserCard do
3434 < span class = "relative flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-full sm:h-24 sm:w-24 " >
3535 < img class = "aspect-square h-full w-full " alt = { @ name } src = { @ avatar_url } />
3636 </ span >
37- < div class = "flex flex-col items-center gap-2 pt-2 text-center " >
38- < div >
39- < span class = "block text-lg font-semibold text-white sm:text-xl " >
40- { @ name }
41- </ span >
37+ < div class = "w-full flex flex-col items-center gap-2 pt-2 text-center " >
38+ < span class = "block text-lg font-semibold text-white sm:text-xl " >
39+ { @ name }
40+ </ span >
4241
43- < div class = "flex flex-wrap items-center justify-center gap-x-3 gap-y-1 pt-1 text-xs text-gray-300 sm:text-sm " >
44- < div :if = { @ twitter_handle } class = "flex items-center gap-1 " >
45- < . icon name = "tabler-brand-twitter " class = "h-4 w-4 " />
46- < span class = "whitespace-nowrap " > { @ twitter_handle } </ span >
47- </ div >
48- < div :if = { @ location } class = "flex items-center gap-1 " >
49- < . icon name = "tabler-map-pin " class = "h-4 w-4 " />
50- < span class = "whitespace-nowrap " > { @ location } </ span >
51- </ div >
52- < div :if = { @ company } class = "flex items-center gap-1 " >
53- < . icon name = "tabler-building " class = "h-4 w-4 " />
54- < span class = "whitespace-nowrap " >
55- { @ company |> String . trim_leading ( "@" ) }
56- </ span >
57- </ div >
42+ < div class = "flex flex-wrap items-center justify-center gap-x-3 gap-y-1 pt-1 text-xs text-gray-300 sm:text-sm " >
43+ < div :if = { @ twitter_handle } class = "flex items-center gap-1 " >
44+ < . icon name = "tabler-brand-twitter " class = "shrink-0 h-4 w-4 " />
45+ < span class = "line-clamp-1 text-left " > { @ twitter_handle } </ span >
46+ </ div >
47+ < div :if = { @ location } class = "flex items-center gap-1 " >
48+ < . icon name = "tabler-map-pin " class = "shrink-0 h-4 w-4 " />
49+ < span class = "line-clamp-1 text-left " > { @ location } </ span >
50+ </ div >
51+ < div :if = { @ company } class = "flex items-center gap-1 " >
52+ < . icon name = "tabler-building " class = "shrink-0 h-4 w-4 " />
53+ < span class = "line-clamp-1 text-left " >
54+ { @ company |> String . trim_leading ( "@" ) }
55+ </ span >
5856 </ div >
59-
60- < span class = "line-clamp-3 pt-2 text-xs text-gray-300 sm:text-sm " >
61- { @ bio }
62- </ span >
6357 </ div >
58+
59+ < span class = "line-clamp-3 pt-2 text-xs text-gray-300 sm:text-sm " >
60+ { @ bio }
61+ </ span >
6462 </ div >
6563 </ div >
6664 </ div >
0 commit comments