From 13ea98e2e5aa1514b86b01429491aae9e4586032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arno=C5=A1t=20Pleskot?= Date: Thu, 21 Sep 2023 10:15:02 +0200 Subject: [PATCH] fix: returned initial appState, added missing constant --- src/appState.ts | 4 ++-- src/constants.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/appState.ts b/src/appState.ts index 16b7862b8..6a00ccfd6 100644 --- a/src/appState.ts +++ b/src/appState.ts @@ -66,7 +66,7 @@ export const getDefaultAppState = (): Omit< openMenu: null, openPopup: null, openSidebar: null, - openDialog: "imageExport", + openDialog: null, pasteDialog: { shown: false, data: null }, previousSelectedElementIds: {}, resizingElement: null, @@ -95,7 +95,7 @@ export const getDefaultAppState = (): Omit< pendingImageElementId: null, showHyperlinkPopup: false, selectedLinearElement: null, - fancyBackgroundImageKey: "bubbles", + fancyBackgroundImageKey: DEFAULT_FANCY_BACKGROUND_IMAGE, }; }; diff --git a/src/constants.ts b/src/constants.ts index 38e15f9a1..77bb90d50 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -246,6 +246,7 @@ export const FANCY_BG_BORDER_RADIUS = 12; // px export const FANCY_BG_LOGO_PADDING = 20; // px export const FANCY_BG_LOGO_BOTTOM_PADDING = 12; // px export const FANCY_BG_INCLUDE_LOGO = true; +export const FANCY_BG_STRETCH_CONTENT_BACKGROUND = true; export const DEFAULT_FANCY_BACKGROUND_RATIO: Dimensions = { width: 16, height: 9,