Remove forgetting curve radio buttons when only one radio button (#3804)

This commit is contained in:
Luc Mcgrady 2025-02-09 12:53:05 +00:00 committed by GitHub
parent acaeee91fa
commit dda5973fdc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,9 +51,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
</script>
<div class="forgetting-curve">
{#if maxDays > 7}
<InputBox>
<div class="time-range-selector">
{#if maxDays > 0}
<label>
<input
type="radio"
@ -62,8 +62,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
/>
{tr.cardStatsFsrsForgettingCurveFirstWeek()}
</label>
{/if}
{#if maxDays > 7}
<label>
<input
type="radio"
@ -72,7 +70,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
/>
{tr.cardStatsFsrsForgettingCurveFirstMonth()}
</label>
{/if}
{#if maxDays > 30}
<label>
<input
@ -95,6 +92,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
{/if}
</div>
</InputBox>
{/if}
<Graph {title}>
<svg bind:this={svg} viewBox={`0 0 ${bounds.width} ${bounds.height}`}>
<AxisTicks {bounds} />