Skip to content

Commit

Permalink
🐛 flash card zoomin status
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Oct 1, 2023
1 parent e8359ed commit df487a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/src/card/openCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const bindCardEvent = (options: {
onGet({
data: response,
protyle: editor.protyle,
action: [Constants.CB_GET_ALL, Constants.CB_GET_HTML],
action: response.data.rootID === response.data.id ? [Constants.CB_GET_HTML] : [Constants.CB_GET_ALL, Constants.CB_GET_HTML],
});
});
}
Expand Down Expand Up @@ -485,7 +485,7 @@ const nextCard = (options: {
onGet({
data: response,
protyle: options.editor.protyle,
action: [Constants.CB_GET_ALL, Constants.CB_GET_HTML],
action: response.data.rootID === response.data.id ? [Constants.CB_GET_HTML] : [Constants.CB_GET_ALL, Constants.CB_GET_HTML],
});
});
};
Expand Down
4 changes: 3 additions & 1 deletion app/src/card/viewCards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ const getArticle = (edit: Protyle, id: string) => {
size: Constants.SIZE_GET_MAX,
}, getResponse => {
onGet({
data: getResponse, protyle: edit.protyle, action: [Constants.CB_GET_ALL, Constants.CB_GET_HTML]
data: getResponse,
protyle: edit.protyle,
action: getResponse.data.rootID === getResponse.data.id ? [Constants.CB_GET_HTML] : [Constants.CB_GET_ALL, Constants.CB_GET_HTML],
});
});
};

0 comments on commit df487a7

Please sign in to comment.