diff --git a/wp-content/themes/pub/wporg-learn-2024/src/lesson-facilitator-notes/index.js b/wp-content/themes/pub/wporg-learn-2024/src/lesson-facilitator-notes/index.js index c19f3777f..1d2ff47ea 100644 --- a/wp-content/themes/pub/wporg-learn-2024/src/lesson-facilitator-notes/index.js +++ b/wp-content/themes/pub/wporg-learn-2024/src/lesson-facilitator-notes/index.js @@ -95,19 +95,12 @@ registerBlockType( metadata.name, { ? __( 'Collapse Content', 'wporg-learn' ) : __( 'Expand Content', 'wporg-learn' ) } -
- setAttributes( { lessonPlanContent: newContent } ) } - /> -
+ setAttributes( { lessonPlanContent: newContent } ) } + /> ) } { lessonPlanId && ( diff --git a/wp-content/themes/pub/wporg-learn-2024/src/lesson-facilitator-notes/style.scss b/wp-content/themes/pub/wporg-learn-2024/src/lesson-facilitator-notes/style.scss index 98b8ce689..ad9d0237c 100644 --- a/wp-content/themes/pub/wporg-learn-2024/src/lesson-facilitator-notes/style.scss +++ b/wp-content/themes/pub/wporg-learn-2024/src/lesson-facilitator-notes/style.scss @@ -1,5 +1,20 @@ .wp-block-wporg-learn-lesson-facilitator-notes { + .components-base-control__field { + margin-bottom: var(--wp--preset--spacing--10); + } + .block-editor-rich-text__editable { white-space: unset !important; + overflow: scroll; + border: 1px solid var(--wp--preset--color--charcoal-5); + margin: var(--wp--preset--spacing--10) 0; + + &.is-expanded { + max-height: none; + } + + &.is-collapsed { + max-height: 300px; + } } }