forked from MapComplete/MapComplete
		
	More fixes
This commit is contained in:
		
							parent
							
								
									2ae380f1a6
								
							
						
					
					
						commit
						9a73ae4c47
					
				
					 21 changed files with 203 additions and 148 deletions
				
			
		|  | @ -20,6 +20,7 @@ export class SubtleButton extends UIElement { | |||
| 
 | ||||
|     private static generateContent(imageUrl: string | BaseUIElement, messageT: string | BaseUIElement, linkTo: { url: string | UIEventSource<string>, newTab?: boolean } = undefined): BaseUIElement { | ||||
|         const message = Translations.W(messageT); | ||||
|         message | ||||
|         let img; | ||||
|         if ((imageUrl ?? "") === "") { | ||||
|             img = undefined; | ||||
|  | @ -36,7 +37,7 @@ export class SubtleButton extends UIElement { | |||
|             return new Combine([ | ||||
|                 image, | ||||
|                 message?.SetClass("blcok ml-4 overflow-ellipsis"), | ||||
|             ]).SetClass("flex group"); | ||||
|             ]).SetClass("flex group w-full"); | ||||
|         } | ||||
| 
 | ||||
| 
 | ||||
|  | @ -44,7 +45,7 @@ export class SubtleButton extends UIElement { | |||
|             new Combine([ | ||||
|                 image, | ||||
|                 message?.SetClass("block ml-4 overflow-ellipsis") | ||||
|             ]).SetClass("flex group"), | ||||
|             ]).SetClass("flex group w-full"), | ||||
|             linkTo.url, | ||||
|             linkTo.newTab ?? false | ||||
|         ) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue