@@ -9,6 +9,7 @@ defmodule AlgoraWeb.Org.BountiesLive do
99 alias Algora.Bounties
1010 alias Algora.Bounties.Bounty
1111 alias Algora.Github
12+ alias Algora.Markdown
1213 alias Algora.Payments
1314 alias Algora.Repo
1415 alias Algora.Types.USD
@@ -120,7 +121,7 @@ defmodule AlgoraWeb.Org.BountiesLive do
120121 class = "group/issue inline-flex flex-col "
121122 href = { Bounty . url ( bounty ) }
122123 >
123- < div class = "flex items-center gap-4 " >
124+ < div :if = { Bounty . path ( bounty ) } class = "flex items-center gap-4 " >
124125 < div class = "truncate " >
125126 < p class = "truncate text-sm font-medium text-gray-300 group-hover/issue:text-gray-200 group-hover/issue:underline " >
126127 { Bounty . path ( bounty ) }
@@ -130,6 +131,25 @@ defmodule AlgoraWeb.Org.BountiesLive do
130131 < p class = "line-clamp-2 break-words text-base font-medium leading-tight text-gray-100 group-hover/issue:text-white group-hover/issue:underline " >
131132 { bounty . ticket . title }
132133 </ p >
134+ < div :if = { is_nil ( Bounty . path ( bounty ) ) and bounty . ticket . description } >
135+ < . markdown
136+ id = { "bounty-description-#{ bounty . id } " }
137+ class = "line-clamp-3 transition-all duration-200 [&>p]:m-0 "
138+ phx-hook = "ExpandableText "
139+ data-expand-id = { "expand-#{ bounty . id } " }
140+ data-class = "line-clamp-3 "
141+ value = { Phoenix.HTML . raw ( Markdown . render ( bounty . ticket . description ) ) }
142+ />
143+ < button
144+ id = { "expand-#{ bounty . id } " }
145+ type = "button "
146+ class = "text-xs text-foreground font-bold hidden "
147+ data-content-id = { "bounty-description-#{ bounty . id } " }
148+ phx-hook = "ExpandableTextButton "
149+ >
150+ ...read more
151+ </ button >
152+ </ div >
133153 </ . link >
134154 < p class = "flex items-center gap-1.5 text-xs text-gray-400 " >
135155 { Algora.Util . time_ago ( bounty . inserted_at ) }
@@ -182,7 +202,7 @@ defmodule AlgoraWeb.Org.BountiesLive do
182202 <% end %>
183203 </ td >
184204 < td class = "[&:has([role=checkbox])]:pr-0 p-4 align-middle " >
185- < div class = "flex items-center gap-2 " >
205+ < div class = "flex items-center justify-end gap-2 " >
186206 < . button
187207 phx-click = "edit-bounty-amount "
188208 phx-value-id = { bounty . id }
0 commit comments