Fix/Help modal appears behind simulator modal (#4171)

* Fix/Help modal appears behind simulator modal

* Correct help modal keys (Doesn't work)
This commit is contained in:
Luc Mcgrady 2025-07-07 10:21:46 +01:00 committed by GitHub
parent d3e1fd1f80
commit 8a3b72e6e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 13 deletions

View file

@ -181,6 +181,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
margin-bottom: 1.5rem;
}
.modal {
z-index: 1066;
background-color: rgba($color: black, $alpha: 0.5);
}
.modal-title {
margin-inline-end: 0.75rem;
}

View file

@ -296,7 +296,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
min={0}
max={9999}
>
<SettingTitle on:click={() => openHelpModal("simulateFsrsReview")}>
<SettingTitle on:click={() => openHelpModal("newLimit")}>
{tr.schedulingNewCardsday()}
</SettingTitle>
</SpinBoxRow>
@ -307,7 +307,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
min={0}
max={9999}
>
<SettingTitle on:click={() => openHelpModal("simulateFsrsReview")}>
<SettingTitle on:click={() => openHelpModal("reviewLimit")}>
{tr.schedulingMaximumReviewsday()}
</SettingTitle>
</SpinBoxRow>
@ -327,9 +327,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
min={1}
max={36500}
>
<SettingTitle
on:click={() => openHelpModal("simulateFsrsReview")}
>
<SettingTitle on:click={() => openHelpModal("maximumInterval")}>
{tr.schedulingMaximumInterval()}
</SettingTitle>
</SpinBoxRow>
@ -339,9 +337,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
defaultValue={$config.reviewOrder}
choices={reviewOrderChoices($fsrs)}
>
<SettingTitle
on:click={() => openHelpModal("simulateFsrsReview")}
>
<SettingTitle on:click={() => openHelpModal("reviewSortOrder")}>
{tr.deckConfigReviewSortOrder()}
</SettingTitle>
</EnumSelectorRow>
@ -351,7 +347,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
defaultValue={$newCardsIgnoreReviewLimit}
>
<SettingTitle
on:click={() => openHelpModal("simulateFsrsReview")}
on:click={() => openHelpModal("newCardsIgnoreReviewLimit")}
>
<GlobalLabel
title={tr.deckConfigNewCardsIgnoreReviewLimit()}
@ -372,9 +368,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
defaultValue={$config.leechAction ==
DeckConfig_Config_LeechAction.SUSPEND}
>
<SettingTitle
on:click={() => openHelpModal("simulateFsrsReview")}
>
<SettingTitle on:click={() => openHelpModal("leechAction")}>
{tr.deckConfigSuspendLeeches()}
</SettingTitle>
</SwitchRow>
@ -387,7 +381,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
max={9999}
>
<SettingTitle
on:click={() => openHelpModal("simulateFsrsReview")}
on:click={() => openHelpModal("leechThreshold")}
>
{tr.schedulingLeechThreshold()}
</SettingTitle>