Skip to content

Commit

Permalink
Fixing an issue with middle row shrink height responsive control
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-c-woodard committed Nov 25, 2024
1 parent 2a69f2c commit c9f7291
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/blocks/header/edit-inner.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,13 +666,14 @@ export function EditInner(props) {
checked={shrinkMain}
onChange={(value) => setMetaAttribute(value, 'shrinkMain')}
/>
{console.log(1, shrinkMainHeight, shrinkMainHeightTablet, shrinkMainHeightMobile)}
{shrinkMain &&
(previewStickySection.includes('main') || previewStickySection === '') && (
<ResponsiveRangeControls
label={__('Middle Row Shrink Height', 'kadence-blocks')}
value={parseFloat(shrinkMainHeight)}
valueTablet={parseFloat(shrinkMainHeightTablet)}
valueMobile={parseFloat(shrinkMainHeightMobile)}
tabletValue={parseFloat(shrinkMainHeightTablet)}
mobileValue={parseFloat(shrinkMainHeightMobile)}
onChange={(value) =>
setMetaAttribute(value.toString(), 'shrinkMainHeight')
}
Expand Down

0 comments on commit c9f7291

Please sign in to comment.