Remove the manage button and make it a right-click instead. And also change the button height/width. Along with more re-arranging in layout.tsx

This commit is contained in:
2026-01-07 18:29:17 -07:00
parent c56a903d55
commit a0a763ae57
4 changed files with 75 additions and 60 deletions

View File

@@ -85,7 +85,7 @@ export default function Installs () {
title={
normalConfig?.settings.useLegacyInteractButtons
? ''
: 'Click to launch game'
: 'Click to launch game. Right-click to manage this version install'
}
onClick={async () => {
if (normalConfig?.settings.useLegacyInteractButtons) return
@@ -99,6 +99,13 @@ export default function Installs () {
displayName: `${gameInfo.name} v${verInfo.versionName}`
})
}}
onContextMenu={e => {
e.preventDefault()
setManagingVersion(entry)
setPopupMode(2)
setShowPopup(true)
setFadeOut(false)
}}
onMouseEnter={() => setHoveredIds(prev => [...prev, entry])}
onMouseLeave={() =>
setHoveredIds(prev => prev.filter(i => i !== i))
@@ -145,6 +152,9 @@ export default function Installs () {
className={`button ${
hoveredIds.includes(entry) ? 'btntheme3' : 'btntheme2'
}`}
hidden={
!normalConfig?.settings.useLegacyInteractButtons
}
onClick={e => {
e.stopPropagation()
setManagingVersion(entry)