forked from EVOgeek/Vmeda.Online
		
	MOBILE-3149 style: Fix collapsible items on tablet
This commit is contained in:
		
							parent
							
								
									d4515ca74c
								
							
						
					
					
						commit
						079d914de6
					
				| @ -153,7 +153,11 @@ export class CoreCollapsibleItemDirective implements OnInit { | ||||
|         this.expanded = expand; | ||||
|         this.element.classList.toggle('collapsible-expanded', expand); | ||||
|         this.element.classList.toggle('collapsible-collapsed', !expand); | ||||
|         this.element.style.maxHeight = expand ? '' : (this.maxHeight + buttonHeight) + 'px'; | ||||
|         if (expand) { | ||||
|             this.element.style.setProperty('--max-height', this.maxHeight + buttonHeight + 'px'); | ||||
|         } else { | ||||
|             this.element.style.removeProperty('--max-height'); | ||||
|         } | ||||
| 
 | ||||
|         const toggleButton = this.element.querySelector('ion-button.collapsible-toggle'); | ||||
|         const toggleText = toggleButton?.querySelector('.collapsible-toggle-text'); | ||||
|  | ||||
| @ -320,8 +320,11 @@ export class CoreFormatTextDirective implements OnChanges { | ||||
|         this.expanded = expand; | ||||
|         this.element.classList.toggle('collapsible-expanded', expand); | ||||
|         this.element.classList.toggle('collapsible-collapsed', !expand); | ||||
|         this.element.style.maxHeight = expand ? '' : this.maxHeight + 'px'; | ||||
| 
 | ||||
|         if (expand) { | ||||
|             this.element.style.setProperty('--max-height', this.maxHeight + 'px'); | ||||
|         } else { | ||||
|             this.element.style.removeProperty('--max-height'); | ||||
|         } | ||||
|         const toggleButton = this.element.querySelector('ion-button.collapsible-toggle'); | ||||
|         const toggleText = toggleButton?.querySelector('.collapsible-toggle-text'); | ||||
|         if (!toggleButton || !toggleText) { | ||||
|  | ||||
| @ -270,6 +270,7 @@ | ||||
|             &.collapsible-collapsed { | ||||
|                 overflow: hidden; | ||||
|                 min-height: calc(var(--collapsible-min-button-height) + 12px); | ||||
|                 max-height: calc(var(--max-height), auto); | ||||
| 
 | ||||
|                 .collapsible-toggle-arrow { | ||||
|                     transform: rotate(90deg); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user