From 6811683e29b1690abae6fa36fcf0b644a639df5a Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Thu, 19 Nov 2020 19:04:08 +0530 Subject: [PATCH] fix: SDA-2644 (Fix snippet window resize issue based on screen size) (#1115) * fix: SDA-2644 - Fix snippet window resize issue based on screen size * fix: SDA-2644 - Resolve conflicts and add new changes * fix: SDA-2644 - fix background for min width * fix: SDA-2644 - Limit snippet window size base on screen size --- spec/__snapshots__/snippingTool.spec.ts.snap | 38 ++++++++-------- spec/utils.spec.ts | 12 ++++- src/app/window-handler.ts | 47 +++++++++++++------- src/common/utils.ts | 9 ++++ src/renderer/components/snipping-tool.tsx | 23 +++++----- src/renderer/styles/snipping-tool.less | 17 +++---- 6 files changed, 89 insertions(+), 57 deletions(-) diff --git a/spec/__snapshots__/snippingTool.spec.ts.snap b/spec/__snapshots__/snippingTool.spec.ts.snap index 043f57a6..47fd6864 100644 --- a/spec/__snapshots__/snippingTool.spec.ts.snap +++ b/spec/__snapshots__/snippingTool.spec.ts.snap @@ -57,27 +57,25 @@ exports[`Snipping Tool should render correctly 1`] = ` -
- +
+ + onChange={[Function]} + paths={Array []} + penColor="rgba(0, 142, 255, 1)" + screenSnippetPath="Screen-Snippet" + /> +