commit 526bb16baa19e6b729ea9bad593dcfd7bd6a22cc parent c94f5fca4f33fc2bafc0ea1767f57e189484ce71 Author: Sarah Chung <sachung@mozilla.com> Date: Fri, 24 Oct 2025 19:05:24 +0000 Bug 1995683 - Restrain height on backup optin spotlight screens to fix flickering r=emcminn,omc-reviewers Differential Revision: https://phabricator.services.mozilla.com/D269871 Diffstat:
4 files changed, 22 insertions(+), 21 deletions(-)
diff --git a/browser/components/aboutwelcome/content-src/components/MultiStageProtonScreen.jsx b/browser/components/aboutwelcome/content-src/components/MultiStageProtonScreen.jsx @@ -658,6 +658,7 @@ export class ProtonScreen extends React.PureComponent { AboutWelcomeUtils.getValidStyle(content.screen_style, [ "width", "padding", + "height", ]) } > diff --git a/browser/components/aboutwelcome/content/aboutwelcome.bundle.js b/browser/components/aboutwelcome/content/aboutwelcome.bundle.js @@ -1560,7 +1560,7 @@ class ProtonScreen extends (react__WEBPACK_IMPORTED_MODULE_0___default().PureCom className: `section-main ${isEmbeddedMigration ? "embedded-migration" : ""}${isSystemPromptStyleSpotlight ? "system-prompt-spotlight" : ""}`, "hide-secondary-section": content.hide_secondary_section ? String(content.hide_secondary_section) : null, role: "document", - style: content.screen_style && _lib_aboutwelcome_utils_mjs__WEBPACK_IMPORTED_MODULE_2__.AboutWelcomeUtils.getValidStyle(content.screen_style, ["width", "padding"]) + style: content.screen_style && _lib_aboutwelcome_utils_mjs__WEBPACK_IMPORTED_MODULE_2__.AboutWelcomeUtils.getValidStyle(content.screen_style, ["width", "padding", "height"]) }, content.secondary_button_top ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_MultiStageAboutWelcome__WEBPACK_IMPORTED_MODULE_3__.SecondaryCTA, { content: content, handleAction: this.props.handleAction, diff --git a/browser/components/asrouter/modules/OnboardingMessageProvider.sys.mjs b/browser/components/asrouter/modules/OnboardingMessageProvider.sys.mjs @@ -88,7 +88,7 @@ const BASE_MESSAGES = () => [ position: "center", screen_style: { width: "650px", - minHeight: "485px", + height: "500px", }, split_content_padding_block: "32px", title: { @@ -310,7 +310,7 @@ const BASE_MESSAGES = () => [ position: "center", screen_style: { width: "650px", - minHeight: "485px", + height: "560px", }, split_content_padding_block: "32px", title: { @@ -542,7 +542,7 @@ const BASE_MESSAGES = () => [ isEncryptedBackup: false, screen_style: { width: "650px", - minHeight: "485px", + height: "560px", }, tiles: { type: "fx_backup_file_path", @@ -588,7 +588,7 @@ const BASE_MESSAGES = () => [ }, screen_style: { width: "650px", - minHeight: "485px", + height: "560px", }, tiles: { type: "fx_backup_file_path", @@ -634,8 +634,8 @@ const BASE_MESSAGES = () => [ fontSize: "13px", }, screen_style: { - width: "650px", - minHeight: "485px", + width: "664px", + height: "620px", }, logo: { imageURL: @@ -675,8 +675,8 @@ const BASE_MESSAGES = () => [ targeting: "!isEncryptedBackup", content: { screen_style: { - width: "650px", - minHeight: "485px", + width: "664px", + height: "620px", }, logo: { imageURL: @@ -768,8 +768,8 @@ const BASE_MESSAGES = () => [ content: { isEncryptedBackup: true, screen_style: { - width: "650px", - minHeight: "485px", + width: "664px", + height: "620px", }, logo: { imageURL: diff --git a/browser/components/asrouter/modules/PanelTestProvider.sys.mjs b/browser/components/asrouter/modules/PanelTestProvider.sys.mjs @@ -44,7 +44,7 @@ const MESSAGES = () => [ position: "center", screen_style: { width: "650px", - minHeight: "485px", + height: "500px", }, split_content_padding_block: "32px", title: { @@ -266,7 +266,7 @@ const MESSAGES = () => [ position: "center", screen_style: { width: "650px", - minHeight: "485px", + height: "560px", }, split_content_padding_block: "32px", title: { @@ -498,7 +498,7 @@ const MESSAGES = () => [ isEncryptedBackup: false, screen_style: { width: "650px", - minHeight: "485px", + height: "560px", }, tiles: { type: "fx_backup_file_path", @@ -544,7 +544,7 @@ const MESSAGES = () => [ }, screen_style: { width: "650px", - minHeight: "485px", + height: "560px", }, tiles: { type: "fx_backup_file_path", @@ -590,8 +590,8 @@ const MESSAGES = () => [ fontSize: "13px", }, screen_style: { - width: "650px", - minHeight: "485px", + width: "664px", + height: "620px", }, logo: { imageURL: @@ -631,8 +631,8 @@ const MESSAGES = () => [ targeting: "!isEncryptedBackup", content: { screen_style: { - width: "650px", - minHeight: "485px", + width: "664px", + height: "620px", }, logo: { imageURL: @@ -724,8 +724,8 @@ const MESSAGES = () => [ content: { isEncryptedBackup: true, screen_style: { - width: "650px", - minHeight: "485px", + width: "664px", + height: "620px", }, logo: { imageURL: