Show developer info if it isn't null and move buttons down to the bottom of box in installs/games menu

This commit is contained in:
2025-12-20 20:19:12 -07:00
parent 2e1cd07b99
commit bc1ca2a2b1
4 changed files with 9 additions and 20 deletions

View File

@@ -83,7 +83,10 @@ export default function VersionInfo () {
/>
<p>{gameInfo?.verified ? 'Verified' : 'Unverified'}</p>
</div>
<div className='entry-info-item btntheme2' hidden={gameInfo?.official}>
<div
className='entry-info-item btntheme2'
hidden={gameInfo?.developer == null}
>
<FontAwesomeIcon icon={faCode} color='lightgray' />
<p>Developer: {gameInfo?.developer}</p>
</div>

View File

@@ -103,13 +103,7 @@ export default function Installs () {
}
>
<div className='flex flex-col'>
<p
className={`text-2xl ${
normalConfig?.settings.useLegacyInteractButtons
? 'w-[calc(100vw-605px)]'
: 'w-[calc(100vw-520px)]'
} truncate`}
>
<p className='text-2xl'>
{getVersionGame(getVersionInfo(entry)?.game)?.name} v
{getVersionInfo(entry)?.versionName}
</p>
@@ -127,7 +121,7 @@ export default function Installs () {
</p>
</div>
</div>
<div className='flex flex-row items-center gap-2'>
<div className='flex flex-row items-center gap-2 mt-auto'>
<button
className={`button ${
hoveredIds.includes(entry) ? 'btntheme3' : 'btntheme2'

View File

@@ -598,7 +598,7 @@ export default function RootLayout ({
</div>
<div
className='entry-info-item btntheme3 mt-2'
hidden={v.official}
hidden={v.developer == null}
>
<FontAwesomeIcon
icon={faCode}

View File

@@ -89,15 +89,7 @@ export default function Installs () {
}
>
<div className='flex flex-col'>
<p
className={`text-2xl ${
normalConfig?.settings.useLegacyInteractButtons
? 'w-[calc(100vw-415px)]'
: 'w-[calc(100vw-335px)]'
} truncate`}
>
{i.name}
</p>
<p className='text-2xl'>{i.name}</p>
<div className='flex gap-2 mt-2'>
<div
className={`entry-info-item ${
@@ -137,7 +129,7 @@ export default function Installs () {
</div>
</div>
<div
className='flex flex-row items-center gap-2'
className='flex flex-row items-center gap-2 mt-auto'
hidden={!normalConfig?.settings.useLegacyInteractButtons}
title='Click to view game installs'
>