Skip to content

Commit d397765

Browse files
jankeromnessvenefftinge
authored andcommitted
[dashboard] Hide running workspace open button when group isn't hovered
1 parent 7ff5916 commit d397765

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/dashboard/src/start/CreateWorkspace.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ export class CreateWorkspace extends React.Component<CreateWorkspaceProps, Creat
8787
<p className="mt-1 mb-2 text-base">You already have running workspaces with the same context. You can open an existing one or open a new workspace.</p>
8888
<>
8989
{result?.existingWorkspaces?.map(w =>
90-
<a href={w.latestInstance?.ideUrl} className="rounded-xl hover:bg-gray-100 flex p-3 my-1">
90+
<a href={w.latestInstance?.ideUrl} className="rounded-xl group hover:bg-gray-100 flex p-3 my-1">
9191
<div className="w-full">
9292
<p className="text-base text-black font-bold">{w.workspace.id}</p>
9393
<p>{w.workspace.contextURL}</p>
9494
</div>
9595
<div className="flex">
96-
<button className="px-3 py-1 my-auto bg-green-600 hover:bg-green-700 border-green-800">Open</button>
96+
<button className="px-3 py-1 my-auto opacity-0 group-hover:opacity-100 bg-green-600 hover:bg-green-700 border-green-800">Open</button>
9797
</div>
9898
</a>
9999
)}

components/dashboard/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = {
3030
},
3131
outline: {
3232
blue: '1px solid #000033',
33-
}
33+
},
3434
},
3535
fontFamily: {
3636
'sans': ['Inter', 'Helvetica', 'Arial', 'sans-serif'],

0 commit comments

Comments
 (0)