fix mutes-and-blocks tab

This commit is contained in:
Henry Jameson 2025-11-25 19:27:10 +02:00
commit 1fd6584374
4 changed files with 20 additions and 6 deletions

View file

@ -128,10 +128,8 @@ export default {
const props = slot.props
if (!props) return
const active = this.activeIndex === index
const classes = ['tab-content-wrapper', active ? '-active' : '-hidden' ]
if (props.fullHeight) {
classes.push('-full-height')
}
const wrapperClasses = ['tab-content-wrapper', active ? '-active' : '-hidden' ]
let delayRender = slot.props['delay-render']
if (delayRender && active) {
slot.props['delay-render'] = false
@ -159,13 +157,20 @@ export default {
</h2>
)
const contentClasses = ['tab-content']
if (props['full-width']) {
contentClasses.push('-full-width')
}
if (props['full-height']) {
contentClasses.push('-full-height')
}
return (
<div class={classes} >
<div class={wrapperClasses} >
<div class="tab-mobile-header">
{header}
</div>
<div class="tab-slot-wrapper">
<div class={ ['tab-content', props['full-width'] ? '-full-width' : null].join(' ') } >
<div class={contentClasses} >
{renderSlot}
</div>
</div>

View file

@ -39,6 +39,10 @@
&.-full-width {
align-self: stretch;
}
&.-full-height {
flex: 1;
}
}
.tab-content-label {