From 99853c19bf68e4f00abd2013ae9076bbe155e8a5 Mon Sep 17 00:00:00 2001 From: Fernando Marichal Date: Tue, 19 Mar 2024 14:06:30 -0400 Subject: [PATCH] Fix double scroll bar in pre-publish panel (#45671) * Fix double scroll bar # Conflicts: # packages/js/product-editor/src/components/prepublish-panel/style.scss * Add changelog * Add comment to styles --- .../changelog/fix-45669_doulbe_scroll_bar_prepublish_panel | 4 ++++ .../product-editor/src/components/prepublish-panel/style.scss | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 packages/js/product-editor/changelog/fix-45669_doulbe_scroll_bar_prepublish_panel diff --git a/packages/js/product-editor/changelog/fix-45669_doulbe_scroll_bar_prepublish_panel b/packages/js/product-editor/changelog/fix-45669_doulbe_scroll_bar_prepublish_panel new file mode 100644 index 00000000000..4eaeb6bc74b --- /dev/null +++ b/packages/js/product-editor/changelog/fix-45669_doulbe_scroll_bar_prepublish_panel @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +Fix double scroll bar in pre-publish panel #45671 diff --git a/packages/js/product-editor/src/components/prepublish-panel/style.scss b/packages/js/product-editor/src/components/prepublish-panel/style.scss index 8f03be6c9f7..50336d47040 100644 --- a/packages/js/product-editor/src/components/prepublish-panel/style.scss +++ b/packages/js/product-editor/src/components/prepublish-panel/style.scss @@ -52,7 +52,8 @@ } &__content { - min-height: calc( 100% - #{ $header-height + 220px } ); + // Ensure the pre-publish panel content accounts for the header and footer height. + min-height: calc( 100% - #{ $header-height + 222px } ); .editor-post-publish-panel__link { font-weight: 400; padding-left: $gap-smallest;