mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix/CMRR style (#4043)
This commit is contained in:
parent
f81a9bfdfb
commit
06c0e4c14a
1 changed files with 26 additions and 30 deletions
|
@ -383,38 +383,34 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
{/if}
|
{/if}
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<div class="m-2">
|
<details>
|
||||||
<details>
|
<summary>{tr.deckConfigComputeOptimalRetention()}</summary>
|
||||||
<summary>{tr.deckConfigComputeOptimalRetention()}</summary>
|
<button
|
||||||
<button
|
class="btn {computingRetention ? 'btn-warning' : 'btn-primary'}"
|
||||||
class="btn {computingRetention
|
disabled={!computingRetention && computing}
|
||||||
? 'btn-warning'
|
on:click={() => computeRetention()}
|
||||||
: 'btn-primary'}"
|
>
|
||||||
disabled={!computingRetention && computing}
|
|
||||||
on:click={() => computeRetention()}
|
|
||||||
>
|
|
||||||
{#if computingRetention}
|
|
||||||
{tr.actionsCancel()}
|
|
||||||
{:else}
|
|
||||||
{tr.deckConfigComputeButton()}
|
|
||||||
{/if}
|
|
||||||
</button>
|
|
||||||
|
|
||||||
{#if optimalRetention}
|
|
||||||
{estimatedRetention(optimalRetention)}
|
|
||||||
{#if optimalRetention - $config.desiredRetention >= 0.01}
|
|
||||||
<Warning
|
|
||||||
warning={tr.deckConfigDesiredRetentionBelowOptimal()}
|
|
||||||
className="alert-warning"
|
|
||||||
/>
|
|
||||||
{/if}
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{#if computingRetention}
|
{#if computingRetention}
|
||||||
<div>{computeRetentionProgressString}</div>
|
{tr.actionsCancel()}
|
||||||
|
{:else}
|
||||||
|
{tr.deckConfigComputeButton()}
|
||||||
{/if}
|
{/if}
|
||||||
</details>
|
</button>
|
||||||
</div>
|
|
||||||
|
{#if optimalRetention}
|
||||||
|
{estimatedRetention(optimalRetention)}
|
||||||
|
{#if optimalRetention - $config.desiredRetention >= 0.01}
|
||||||
|
<Warning
|
||||||
|
warning={tr.deckConfigDesiredRetentionBelowOptimal()}
|
||||||
|
className="alert-warning"
|
||||||
|
/>
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{#if computingRetention}
|
||||||
|
<div>{computeRetentionProgressString}</div>
|
||||||
|
{/if}
|
||||||
|
</details>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="btn {computing ? 'btn-warning' : 'btn-primary'}"
|
class="btn {computing ? 'btn-warning' : 'btn-primary'}"
|
||||||
|
|
Loading…
Reference in a new issue