This commit is contained in:
2026-05-08 22:07:08 +08:00
parent 65c2b8cd79
commit 96df12cd15
4 changed files with 43 additions and 3 deletions

View File

@@ -962,6 +962,7 @@ export function PuzzleRuntimeShell({
canAdvanceDefaultNextLevel || hasSimilarWorkChoices;
const levelLabel = `${currentLevel.levelIndex}`;
const exitPromptProfileId = currentLevel.profileId.trim();
const shouldHideBackButton = hideBackButton || hideExitControls;
const leaderboardEntries =
(currentLevel.leaderboardEntries ?? []).length > 0
? currentLevel.leaderboardEntries
@@ -1105,9 +1106,11 @@ export function PuzzleRuntimeShell({
type="button"
onClick={handleBackRequest}
aria-label="返回上一页"
disabled={hideBackButton}
disabled={shouldHideBackButton}
className={`puzzle-runtime-icon-button h-10 w-10 items-center justify-center rounded-full sm:h-11 sm:w-11 ${
hideBackButton ? 'invisible pointer-events-none' : 'inline-flex'
shouldHideBackButton
? 'invisible pointer-events-none'
: 'inline-flex'
}`}
>
<ArrowLeft className="h-4 w-4" />
@@ -1739,7 +1742,7 @@ export function PuzzleRuntimeShell({
onBack();
}}
className={`puzzle-runtime-primary-button rounded-full px-4 py-2 text-sm font-bold transition hover:brightness-105 ${
hideBackButton ? 'hidden' : ''
shouldHideBackButton ? 'hidden' : ''
}`}
>