forked from MapComplete/MapComplete
		
	UI: fix layout glitch due to refactoring, fix #2030 (part two)
This commit is contained in:
		
							parent
							
								
									a5312a761c
								
							
						
					
					
						commit
						f33e9f78b7
					
				
					 1 changed files with 3 additions and 9 deletions
				
			
		|  | @ -43,18 +43,12 @@ | |||
| {#if filteredLayer.layerDef.name} | ||||
|   <div class:focus={$highlightedLayer === filteredLayer.layerDef.id} class="mb-1.5"> | ||||
|     <Checkbox selected={isDisplayed}> | ||||
|       <If condition={filteredLayer.isDisplayed}> | ||||
|         <div class="block h-6 w-6 no-image-background"> | ||||
|       <div class="block h-6 w-6 no-image-background" class:opacity-50={!$isDisplayed}> | ||||
|         <ToSvelte | ||||
|           construct={() => layer.defaultIcon()} | ||||
|         /> | ||||
|         </div> | ||||
|         <ToSvelte | ||||
|           slot="else" | ||||
|           construct={() => | ||||
|             layer.defaultIcon()?.SetClass("block h-6 w-6 no-image-background opacity-50")} | ||||
|         /> | ||||
|       </If> | ||||
|       </div> | ||||
| 
 | ||||
| 
 | ||||
|       <Tr t={filteredLayer.layerDef.name} /> | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue