From 96f5f67751c3a193d8283a39716cb67c10da981c Mon Sep 17 00:00:00 2001 From: Stian Date: Tue, 26 Nov 2024 09:41:09 +0100 Subject: [PATCH] Present theme aspect ratios as decimal values --- .../src/components/image-editor/aspect-ratio-dropdown.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/image-editor/aspect-ratio-dropdown.js b/packages/block-editor/src/components/image-editor/aspect-ratio-dropdown.js index b8432d1669f285..7c26c675a21f87 100644 --- a/packages/block-editor/src/components/image-editor/aspect-ratio-dropdown.js +++ b/packages/block-editor/src/components/image-editor/aspect-ratio-dropdown.js @@ -111,7 +111,9 @@ export default function AspectRatioDropdown( { toggleProps } ) { onClose(); } } value={ aspect } - aspectRatios={ themeRatios } + aspectRatios={ themeRatios.map( + presetRatioAsNumber + ) } /> ) } { showDefaultRatios && (