forked from MapComplete/MapComplete
		
	Refactoring of Attribute Images, fix more or less decent slideshow. Turns out a few lines of css can get us there!
This commit is contained in:
		
							parent
							
								
									6ba4cb18c6
								
							
						
					
					
						commit
						1609c63f3b
					
				
					 20 changed files with 363 additions and 361 deletions
				
			
		|  | @ -29,14 +29,14 @@ export class SubtleButton extends UIElement { | |||
|         } else { | ||||
|             img = imageUrl; | ||||
|         } | ||||
|         img?.SetClass("block flex items-center justify-center h-11 w-11 flex-shrink0") | ||||
|         img?.SetClass("block flex items-center justify-center h-11 w-11 flex-shrink0 mr-4") | ||||
|         const image = new Combine([img]) | ||||
|             .SetClass("flex-shrink-0"); | ||||
| 
 | ||||
|         if (linkTo == undefined) { | ||||
|             return new Combine([ | ||||
|                 image, | ||||
|                 message?.SetClass("blcok ml-4 overflow-ellipsis"), | ||||
|                 message?.SetClass("block overflow-ellipsis"), | ||||
|             ]).SetClass("flex group w-full"); | ||||
|         } | ||||
| 
 | ||||
|  | @ -44,7 +44,7 @@ export class SubtleButton extends UIElement { | |||
|         return new Link( | ||||
|             new Combine([ | ||||
|                 image, | ||||
|                 message?.SetClass("block ml-4 overflow-ellipsis") | ||||
|                 message?.SetClass("block overflow-ellipsis") | ||||
|             ]).SetClass("flex group w-full"), | ||||
|             linkTo.url, | ||||
|             linkTo.newTab ?? false | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue