{ __( 'Use the player controls to play, pause, and seek. Autoplay is disabled only in the editor.', 'wp-asciiplayer' ) }
} { [ 'height', 'both' ].includes( fit ) &&{ __( 'Height-based previews use the shortcode’s fixed height when available, or a 320px editor frame. Published height still comes from your container style.', 'wp-asciiplayer' ) }
} diff --git a/src/editor.css b/src/editor.css index 615b9e0..e3489c3 100644 --- a/src/editor.css +++ b/src/editor.css @@ -58,3 +58,8 @@ .asciiplayer-example__terminal > span:first-child { color: #a9da76; } .asciiplayer-example__controls { padding: 8px 16px; background: #222; font: 12px/1.5 monospace; } .asciiplayer-example figcaption { padding: 8px; background: #fff; color: #333; text-align: center; font-size: 12px; } + +/* Keep an empty caption's footprint stable when another block is selected. + * Removing it on pointerdown can move the next block's button before pointerup. */ +.asciiplayer-editor .asciiplayer-figure > figcaption { min-height: 1.5em; } +.asciiplayer-editor .asciiplayer-caption-empty { visibility: hidden; }