Skip to content

Commit

Permalink
fix: highlighter not adjusting when target size changes (#3150)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Feb 7, 2023
1 parent c1ae877 commit 25d92ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web/src/ui/KeyDialog/dialogContext/useGallery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,15 @@ export const useGallery = (uiProps: UiProps) => {
translationsForm: Record<string, string>
) {
setTakingScreenshot(true);
const { unhighlight } = uiProps.highlight(key, ns);
const { revert } = changeInTolgeeCache(
key,
ns,
Object.entries(translationsForm),
uiProps.changeTranslation
);
await sleep(100);
const { unhighlight } = uiProps.highlight(key, ns);
await sleep(100);
let screenshot: string;
try {
screenshot = await takeScreenshot();
Expand Down

0 comments on commit 25d92ac

Please sign in to comment.