1
This commit is contained in:
@@ -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' : ''
|
||||
}`}
|
||||
>
|
||||
返回上一页
|
||||
|
||||
Reference in New Issue
Block a user