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