forked from MapComplete/MapComplete
		
	UX tweaks
This commit is contained in:
		
							parent
							
								
									e8569ec540
								
							
						
					
					
						commit
						b33f2c63e9
					
				
					 2 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
					@ -1452,6 +1452,16 @@ export class ValidateLayer extends Conversion<
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        for (let i = 0; i < layerConfig.titleIcons.length; i++) {
 | 
				
			||||||
 | 
					            const titleIcon = layerConfig.titleIcons[i]
 | 
				
			||||||
 | 
					            if (<any> titleIcon.render === "icons.defaults") {
 | 
				
			||||||
 | 
					                context.enters("titleIcons", i).err("Detected a literal 'icons.defaults'")
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            if (<any> titleIcon.render === "icons.rating") {
 | 
				
			||||||
 | 
					                context.enters("titleIcons", i).err("Detected a literal 'icons.rating'")
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return { raw: json, parsed: layerConfig }
 | 
					        return { raw: json, parsed: layerConfig }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -57,7 +57,7 @@
 | 
				
			||||||
  </button>
 | 
					  </button>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <div class="flex items-center justify-self-end title-icons links-as-button gap-x-0.5 p-1 pt-0.5 sm:pt-1">
 | 
					  <div class="self-end flex items-center flex-wrap justify-self-end title-icons links-as-button gap-x-0.5 p-1 pt-0.5 sm:pt-1">
 | 
				
			||||||
    {#each favConfig.titleIcons as titleIconConfig}
 | 
					    {#each favConfig.titleIcons as titleIconConfig}
 | 
				
			||||||
      {#if (titleIconBlacklist.indexOf(titleIconConfig.id) < 0) && (titleIconConfig.condition?.matchesProperties(properties) ?? true) && (titleIconConfig.metacondition?.matchesProperties({ ...properties, ...state.userRelatedState.preferencesAsTags.data }) ?? true) && titleIconConfig.IsKnown(properties)}
 | 
					      {#if (titleIconBlacklist.indexOf(titleIconConfig.id) < 0) && (titleIconConfig.condition?.matchesProperties(properties) ?? true) && (titleIconConfig.metacondition?.matchesProperties({ ...properties, ...state.userRelatedState.preferencesAsTags.data }) ?? true) && titleIconConfig.IsKnown(properties)}
 | 
				
			||||||
        <div class={titleIconConfig.renderIconClass ?? "flex h-8 w-8 items-center"}>
 | 
					        <div class={titleIconConfig.renderIconClass ?? "flex h-8 w-8 items-center"}>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue