1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-09 15:55:23 +02:00

add env selector

This commit is contained in:
testa113 2024-03-20 10:31:27 +13:00 committed by testa113
parent eea5543c61
commit cc0b093c49

View file

@ -68,7 +68,10 @@ export function EnvironmentItem({
<div className="ml-2 flex justify-center self-center"> <div className="ml-2 flex justify-center self-center">
<EnvironmentIcon type={environment.Type} /> <EnvironmentIcon type={environment.Type} />
</div> </div>
<div className="ml-3 mr-auto flex flex-col items-start justify-center gap-3"> <div
className="ml-3 mr-auto flex flex-col items-start justify-center gap-3"
data-cy="component-environmentLink" // using this div for data-cy ensures the mouse click doesn't overlap with EnvironmentBrowseButtons (absolute position)
>
<div className="flex flex-wrap items-center gap-x-4 gap-y-2"> <div className="flex flex-wrap items-center gap-x-4 gap-y-2">
<span className="font-bold">{environment.Name}</span> <span className="font-bold">{environment.Name}</span>
{isEdge ? ( {isEdge ? (