mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
Formatting
This commit is contained in:
parent
618483a6e7
commit
0c1aa173f0
2 changed files with 7 additions and 7 deletions
|
|
@ -72,9 +72,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
|
||||
function onShown() {
|
||||
searchInput?.focus();
|
||||
for(const element of filteredElements) {
|
||||
if(element.classList.contains("selected")) {
|
||||
element.scrollIntoView({block: "start"});
|
||||
for (const element of filteredElements) {
|
||||
if (element.classList.contains("selected")) {
|
||||
element.scrollIntoView({ block: "start" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -91,7 +91,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
</LabelButton>
|
||||
|
||||
<Shortcut {keyCombination} on:action={toggleModal} />
|
||||
<Modal bind:this={modal} onShown={onShown} dialogClass="modal-lg">
|
||||
<Modal bind:this={modal} {onShown} dialogClass="modal-lg">
|
||||
<div slot="header" class="modal-header">
|
||||
<IconConstrain iconSize={90}>
|
||||
<Icon {icon} />
|
||||
|
|
|
|||
|
|
@ -1038,7 +1038,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
if (notetypeId) {
|
||||
selectedNotetypeId = notetypeId;
|
||||
}
|
||||
if(!selectedNotetypeId && copyFromNote) {
|
||||
if (!selectedNotetypeId && copyFromNote) {
|
||||
selectedNotetypeId = copyFromNote?.notetypeId;
|
||||
}
|
||||
if (mode === "add") {
|
||||
|
|
@ -1211,10 +1211,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
|
||||
async function loadNote(args: Partial<LoadNoteArgs>) {
|
||||
if (args.initial) {
|
||||
initialLoadArgs = {...args, initial: false};
|
||||
initialLoadArgs = { ...args, initial: false };
|
||||
}
|
||||
if (typeof args.focusTo === "undefined") {
|
||||
args = {...args, focusTo: focusedFieldIndex};
|
||||
args = { ...args, focusTo: focusedFieldIndex };
|
||||
}
|
||||
loadDebouncer.schedule(async () => {
|
||||
await loadNoteInner(
|
||||
|
|
|
|||
Loading…
Reference in a new issue