Skip to content

Commit c113bc1

Browse files
committed
Hide components under focused template
1 parent fcb9f15 commit c113bc1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/templates/main-body-template.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,17 @@ export default function mainBodyTemplate() {
113113
? this.renderStyle === 'read'
114114
? expandedEndpointTemplate.call(this)
115115
: this.renderStyle === 'focused'
116-
? focusedEndpointTemplate.call(this)
116+
? this.selectedContentId.startsWith('cmp-')
117+
? componentsTemplate.call(this)
118+
: focusedEndpointTemplate.call(this)
117119
: endpointTemplate.call(this)
118120
: ''
119121
}
120122
</div>
121123
122-
${this.showComponents === 'true' ? componentsTemplate.call(this) : ''}
124+
${this.showComponents === 'true' && this.renderStyle !== 'focused'
125+
? componentsTemplate.call(this)
126+
: ''}
123127
`
124128
: ''
125129
}

0 commit comments

Comments
 (0)