diff --git a/src/Models/ThemeConfig/Json/LayerConfigJson.ts b/src/Models/ThemeConfig/Json/LayerConfigJson.ts index aab3799fd..fdcc794f4 100644 --- a/src/Models/ThemeConfig/Json/LayerConfigJson.ts +++ b/src/Models/ThemeConfig/Json/LayerConfigJson.ts @@ -219,12 +219,13 @@ export interface LayerConfigJson { * * If set, open the selectedElementView in a floatOver instead of on the right. * - * iftrue: show the infobox in the splashscreen floating over the entire UI + * iftrue: show the infobox in the splashscreen floating over the entire UI; hide the title bar * iffalse: show the infobox in a sidebar on the right + * suggestions: return [{if: "value=title", then: "Show in a floatover and show the title bar"}] * group: advanced * default: sidebar */ - popupInFloatover?: boolean + popupInFloatover?: boolean | "title" | string /** * Small icons shown next to the title. diff --git a/src/Models/ThemeConfig/LayerConfig.ts b/src/Models/ThemeConfig/LayerConfig.ts index 8e6a70d08..b72658cf8 100644 --- a/src/Models/ThemeConfig/LayerConfig.ts +++ b/src/Models/ThemeConfig/LayerConfig.ts @@ -66,7 +66,7 @@ export default class LayerConfig extends WithContextLoader { public readonly syncSelection: (typeof LayerConfig.syncSelectionAllowed)[number] // this is a trick to conver a constant array of strings into a type union of these values public readonly _needsFullNodeDatabase: boolean - public readonly popupInFloatover + public readonly popupInFloatover: boolean | string constructor(json: LayerConfigJson, context?: string, official: boolean = true) { context = context + "." + json.id diff --git a/src/UI/BigComponents/SelectedElementTitle.svelte b/src/UI/BigComponents/SelectedElementTitle.svelte index a00e58a72..44987328e 100644 --- a/src/UI/BigComponents/SelectedElementTitle.svelte +++ b/src/UI/BigComponents/SelectedElementTitle.svelte @@ -65,6 +65,8 @@ {/if} + + +