mirror of
https://github.com/tale/headplane.git
synced 2026-08-27 23:47:31 +00:00
fix: make the ssh button look nicer
This commit is contained in:
@@ -120,15 +120,12 @@ export default function MachineMenu({
|
|||||||
) : (
|
) : (
|
||||||
<Button
|
<Button
|
||||||
className={cn(
|
className={cn(
|
||||||
"py-0.5",
|
"py-0.5 rounded-lg",
|
||||||
"opacity-0 pointer-events-none group-hover:opacity-100",
|
"opacity-0 pointer-events-none group-hover:opacity-100",
|
||||||
"group-hover:pointer-events-auto",
|
"group-hover:pointer-events-auto",
|
||||||
)}
|
)}
|
||||||
variant="ghost"
|
variant="light"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
// We need to use JS to open the SSH URL
|
|
||||||
// in a new WINDOW since href can only
|
|
||||||
// do a new TAB.
|
|
||||||
window.open(
|
window.open(
|
||||||
`${__PREFIX__}/ssh?hostname=${node.givenName}`,
|
`${__PREFIX__}/ssh?hostname=${node.givenName}`,
|
||||||
"_blank",
|
"_blank",
|
||||||
|
|||||||
Reference in New Issue
Block a user