From cb1b99a547b2cb6a920e15bab043f1489f8da8de Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Sat, 6 Aug 2022 16:36:39 +0900 Subject: [PATCH] Adjust width --- .../src/components/global-styles/style.scss | 4 +++ .../global-styles/typography-panel.js | 35 +++++++++++-------- 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/packages/edit-site/src/components/global-styles/style.scss b/packages/edit-site/src/components/global-styles/style.scss index 3453c7566ace29..ed72bfb1fde31f 100644 --- a/packages/edit-site/src/components/global-styles/style.scss +++ b/packages/edit-site/src/components/global-styles/style.scss @@ -21,6 +21,10 @@ border-radius: $radius-block-ui; } +.edit-site-typography-panel__half-width-control { + width: calc((100% - #{$grid-unit-30}) / 2); +} + .edit-site-global-styles-screen-heading-color, .edit-site-global-styles-screen-typography { margin: $grid-unit-20; diff --git a/packages/edit-site/src/components/global-styles/typography-panel.js b/packages/edit-site/src/components/global-styles/typography-panel.js index ebd4293d000d33..6c049d670aad6a 100644 --- a/packages/edit-site/src/components/global-styles/typography-panel.js +++ b/packages/edit-site/src/components/global-styles/typography-panel.js @@ -153,6 +153,7 @@ export default function TypographyPanel( { name, element } ) { value={ selectedLevel } onChange={ setCurrentTab } isBlock + size="__unstable-large" > ) } { hasLineHeightEnabled && ( - - - +
+ + + +
) } { hasAppearanceControl && ( ) } { hasLetterSpacingControl && ( - +
+ +
) } );