🐞 fix: Animate team-grid bio with JS measuring natural height

This commit is contained in:
Keith Solomon
2026-07-25 15:41:46 -05:00
parent 7c1c145846
commit 842818ec7e
4 changed files with 2814 additions and 3856 deletions
+11
View File
@@ -17,6 +17,17 @@ if ( empty( $members ) ) {
return;
}
// Enqueue the per-block JS only when this block actually renders.
$js_path = '/views/blocks/team-grid/team-grid.js';
if ( file_exists( get_stylesheet_directory() . $js_path ) ) {
wp_enqueue_script_module(
'cwc-team-grid',
get_stylesheet_directory_uri() . $js_path,
array(),
(string) filemtime( get_stylesheet_directory() . $js_path )
);
}
$modeSingle = '';
$blockID = wp_unique_id( 'single-' );