mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00

* Enable access to old notetype name
* Set minimum height for ChangeNotetypeDialog
* Add bootstrap icons to change-notetype
* Move alert up and make it collapsible
* Tweak some CSS
- Add variables --sticky-bg and --sticky-border to StickyContainer
- Tweak base.css
* Add translatable string "(Nothing)"
* Rework ChangeNotetype screen
* Initially load option at newIndex and remaining options on focus
Optimization for big notetypes:
Should increase efficiency from O(n²) to O(n). Test on notetype with 500 templates shows significant improvement in load time (~10s down to ~1s).
* Try to satisfy rust test
* Change arrow direction depending on reading direction
+ add 0.5em top padding to main
* Create Alert.svelte
* Introduce CSS variable --pane-bg
* Revert "Initially load option at newIndex and remaining options on focus"
This reverts commit f42beee45c
.
* Final cleanup
* Refine padding/gutter
23 lines
710 B
Svelte
23 lines
710 B
Svelte
<!--
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
-->
|
|
<script lang="ts">
|
|
import Container from "../components/Container.svelte";
|
|
import MapperRow from "./MapperRow.svelte";
|
|
import Spacer from "../components/Spacer.svelte";
|
|
import type { ChangeNotetypeState, MapContext } from "./lib";
|
|
|
|
export let state: ChangeNotetypeState;
|
|
export let ctx: MapContext;
|
|
|
|
let info = state.info;
|
|
</script>
|
|
|
|
<Spacer --height="0.5rem" />
|
|
|
|
<Container --gutter-inline="0.5rem" --gutter-block="0.15rem">
|
|
{#each $info.mapForContext(ctx) as _, newIndex}
|
|
<MapperRow {state} {ctx} {newIndex} />
|
|
{/each}
|
|
</Container>
|