diff --git a/src/components/ServiceCard.tsx b/src/components/ServiceCard.tsx index bfdfb1f..82681ac 100644 --- a/src/components/ServiceCard.tsx +++ b/src/components/ServiceCard.tsx @@ -101,68 +101,50 @@ export function ServiceCard({ service, status }: ServiceCardProps) { return (
- {/* Top row: badges + links */} + {/* Top row: badge */}
{resourceBadge && ( {resourceBadge} )} - {discovered && ( - - - +
+ + {/* Service info (non-clickable) */} +
+ +
+ +

+ {service.name} +

+ {service.description && ( +

+ {service.description} +

+ )} + +
+ {fqdnLabel && ( + + {fqdnLabel} + + )} + {service.port > 0 && ( + + :{service.port} + )}
- {/* Clickable area for opening service URL */} - -
- -
- -

- {service.name} -

- {service.description && ( -

- {service.description} -

- )} - -
- {fqdnLabel && ( - - {fqdnLabel} - - )} - {service.port > 0 && ( - - :{service.port} - - )} -
-
- - {/* Controls footer */} - {discovered && ( -
- {/* Status pill */} + {/* Footer: status + links + controls */} +
+ {/* Left: status pill */} + {discovered ? ( {loading ? 'Processing...' : statusLabels[status]} + ) : ( + + )} - {/* Action buttons */} - {!loading && ( -
+ {/* Right: links + action buttons */} +
+ {/* Open website */} + + + + + {/* Manage in Coolify */} + {discovered && ( + + + + )} + + {/* Divider between links and controls */} + {discovered && !loading && (status === 'running' || isStopped) && ( + + )} + + {/* Control buttons */} + {discovered && !loading && ( + <> {isStopped ? ( ) : null} -
+ )}
- )} +
); }