forked from MapComplete/MapComplete
		
	More CSS improvements and cleanups
This commit is contained in:
		
							parent
							
								
									6d5f4ade25
								
							
						
					
					
						commit
						257194c063
					
				
					 7 changed files with 128 additions and 287 deletions
				
			
		|  | @ -158,9 +158,9 @@ export abstract class UIElement extends UIEventSource<string> { | |||
|         if (this.style !== undefined && this.style !== "") { | ||||
|             style = `style="${this.style}" `; | ||||
|         } | ||||
|         const clss = ""; | ||||
|         let clss = ""; | ||||
|         if (this.clss.length > 0) { | ||||
|             `class='${this.clss.join(" ")}' `; | ||||
|             clss = `class='${this.clss.join(" ")}' `; | ||||
|         } | ||||
|         return `<span ${clss}${style}id='${this.id}'>${this.lastInnerRender}</span>` | ||||
|     } | ||||
|  | @ -184,14 +184,14 @@ export abstract class UIElement extends UIEventSource<string> { | |||
| 
 | ||||
|     public SetClass(clss: string): UIElement { | ||||
|         this.dumbMode = false; | ||||
|         if(clss === "" && this.clss.length > 0){ | ||||
|         if (clss === "" && this.clss.length > 0) { | ||||
|             this.clss = []; | ||||
|             this.Update(); | ||||
|         } | ||||
|         if (this.clss.indexOf(clss) < 0) { | ||||
|         } else if (this.clss.indexOf(clss) < 0) { | ||||
|             this.clss.push(clss); | ||||
|             this.Update(); | ||||
|         } | ||||
|         console.log(this.clss) | ||||
|         return this; | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue