From fd30c4460e73269371cf71d4eaa19ba78397e7de Mon Sep 17 00:00:00 2001 From: RJ <27843274+rjchow@users.noreply.github.com> Date: Tue, 20 Aug 2024 07:37:32 +0800 Subject: [PATCH] fix: core profiler sticky footer button variable vh breakpoints (#50727) * fix: core profiler sticky footer button variable vh breakpoints * lint * lint --- .../client/core-profiler/pages/Plugins.tsx | 19 +++++- .../client/core-profiler/style.scss | 60 ++++++++++++++++++- ...core-profiler-plugins-sticky-footer-button | 4 ++ 3 files changed, 80 insertions(+), 3 deletions(-) create mode 100644 plugins/woocommerce/changelog/fix-core-profiler-plugins-sticky-footer-button diff --git a/plugins/woocommerce-admin/client/core-profiler/pages/Plugins.tsx b/plugins/woocommerce-admin/client/core-profiler/pages/Plugins.tsx index f3c50c28bc3..8964ed1ab2c 100644 --- a/plugins/woocommerce-admin/client/core-profiler/pages/Plugins.tsx +++ b/plugins/woocommerce-admin/client/core-profiler/pages/Plugins.tsx @@ -7,6 +7,7 @@ import interpolateComponents from '@automattic/interpolate-components'; import { Link } from '@woocommerce/components'; import { Extension, ExtensionList } from '@woocommerce/data'; import { useState } from 'react'; +import clsx from 'clsx'; /** * Internal dependencies @@ -146,6 +147,10 @@ export const Plugins = ( { ].includes( plugin.key ) ); + const pluginsCardRowCount = Math.ceil( + context.pluginsAvailable.length / 2 + ); + return (
{ errorMessage }

) } -
+
{ context.pluginsAvailable.map( ( plugin ) => { const learnMoreLink = plugin.learn_more_link ? ( -
+