From a511ce77e95a89cc5ee933e0b91e3abb554fd401 Mon Sep 17 00:00:00 2001 From: Luigi Teschio Date: Wed, 3 Jul 2024 09:25:23 +0200 Subject: [PATCH] CYS: fix toolbar position after the site preview resizes (#49028) * CYS: fix toolbar position * Add changefile(s) from automation for the following project(s): woocommerce --------- Co-authored-by: github-actions --- .../client/customize-store/assembler-hub/toolbar/toolbar.tsx | 2 +- ...nt-in-the-right-position-when-the-user-resize-the-viewport | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 plugins/woocommerce/changelog/49028-49024-cys-block-toolbar-isnt-in-the-right-position-when-the-user-resize-the-viewport diff --git a/plugins/woocommerce-admin/client/customize-store/assembler-hub/toolbar/toolbar.tsx b/plugins/woocommerce-admin/client/customize-store/assembler-hub/toolbar/toolbar.tsx index c6b071ae2c9..8bb77163f5e 100644 --- a/plugins/woocommerce-admin/client/customize-store/assembler-hub/toolbar/toolbar.tsx +++ b/plugins/woocommerce-admin/client/customize-store/assembler-hub/toolbar/toolbar.tsx @@ -165,7 +165,7 @@ export const Toolbar = () => { return new window.DOMRect( rect?.left + 10, - Math.max( top + 90, 110 ), + Math.max( top + 70 + rect.top, 100 ), width, height ); diff --git a/plugins/woocommerce/changelog/49028-49024-cys-block-toolbar-isnt-in-the-right-position-when-the-user-resize-the-viewport b/plugins/woocommerce/changelog/49028-49024-cys-block-toolbar-isnt-in-the-right-position-when-the-user-resize-the-viewport new file mode 100644 index 00000000000..95fc205660f --- /dev/null +++ b/plugins/woocommerce/changelog/49028-49024-cys-block-toolbar-isnt-in-the-right-position-when-the-user-resize-the-viewport @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +CYS: fix toolbar position after the site preview resizes \ No newline at end of file