Skip to content

Commit

Permalink
Set style before showing comparison in "detect paragraph ..." option …
Browse files Browse the repository at this point in the history
…enabled state
  • Loading branch information
chunibyocola committed Jun 29, 2023
1 parent 132e7ba commit 1f1e0f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/public/web-page-translate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,8 @@ const feedDataToPageTranslateItem = (pageTranslateItem: PageTranslateItemEnity,
paragraph._ScWebpageTranslationKey = pageTranslateItem.mapIndex;

pageTranslateItem.fontsNodes[pageTranslateItem.fontsNodes.length - 1][1] = paragraph;

dealWithFontsStyle(pageTranslateItem.fontsNodes[pageTranslateItem.fontsNodes.length - 1]);
}

startObserving();
Expand Down

0 comments on commit 1f1e0f0

Please sign in to comment.