@@ -256,9 +256,9 @@ export const ShowDeployments = ({
256256 return (
257257 < div
258258 key = { deployment . deploymentId }
259- className = "flex items-center justify-between rounded-lg border p-4 gap-2 "
259+ className = "flex flex-col gap-4 rounded-lg border p-4 sm:flex-row sm:items-center sm:justify-between "
260260 >
261- < div className = "flex flex-col" >
261+ < div className = "flex flex-1 flex- col min-w-0 " >
262262 < span className = "flex items-center gap-4 font-medium capitalize text-foreground" >
263263 { index + 1 } . { deployment . status }
264264 < StatusTooltip
@@ -313,8 +313,8 @@ export const ShowDeployments = ({
313313 ) }
314314 </ div >
315315 </ div >
316- < div className = "flex flex-col items-end gap-2 max-w-[300px] w-full justify-start" >
317- < div className = "text-sm capitalize text-muted-foreground flex items-center gap-2" >
316+ < div className = "flex w-full flex-col items-start gap-2 sm:w-auto sm: max-w-[300px] sm:items-end sm: justify-start" >
317+ < div className = "text-sm capitalize text-muted-foreground flex flex-wrap items-center gap-2" >
318318 < DateTooltip date = { deployment . createdAt } />
319319 { deployment . startedAt && deployment . finishedAt && (
320320 < Badge
@@ -333,7 +333,7 @@ export const ShowDeployments = ({
333333 ) }
334334 </ div >
335335
336- < div className = "flex flex-row items-center gap-2 " >
336+ < div className = "flex w-full flex-col gap-2 sm:w-auto sm:flex- row sm: items-center sm:justify-end " >
337337 { deployment . pid && deployment . status === "running" && (
338338 < DialogAction
339339 title = "Kill Process"
@@ -355,6 +355,7 @@ export const ShowDeployments = ({
355355 variant = "destructive"
356356 size = "sm"
357357 isLoading = { isKillingProcess }
358+ className = "w-full sm:w-auto"
358359 >
359360 Kill Process
360361 </ Button >
@@ -364,6 +365,7 @@ export const ShowDeployments = ({
364365 onClick = { ( ) => {
365366 setActiveLog ( deployment ) ;
366367 } }
368+ className = "w-full sm:w-auto"
367369 >
368370 View
369371 </ Button >
@@ -405,6 +407,7 @@ export const ShowDeployments = ({
405407 variant = "secondary"
406408 size = "sm"
407409 isLoading = { isRollingBack }
410+ className = "w-full sm:w-auto"
408411 >
409412 < RefreshCcw className = "size-4 text-primary group-hover:text-red-500" />
410413 Rollback
0 commit comments