forked from Berry-Dash/launcher
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user