forked from MapComplete/MapComplete
UX: fix #2484 (although a bit hacky)
This commit is contained in:
parent
7f45d7487d
commit
f45c348fdb
3 changed files with 14 additions and 7 deletions
|
@ -1351,10 +1351,6 @@ input[type="range"].range-lg::-moz-range-thumb {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.-m-4 {
|
|
||||||
margin: -1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.m-0 {
|
.m-0 {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
@ -2348,6 +2344,10 @@ input[type="range"].range-lg::-moz-range-thumb {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.grow-0 {
|
||||||
|
flex-grow: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.border-collapse {
|
.border-collapse {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
/**
|
/**
|
||||||
* The visual feedback panel gives visual (and auditive) feedback on the main map view
|
* The visual feedback panel gives visual (and auditive) feedback on the main map view
|
||||||
|
* This is an accessibility feature for people with screen readers
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Translations from "../i18n/Translations"
|
import Translations from "../i18n/Translations"
|
||||||
|
|
|
@ -78,6 +78,8 @@
|
||||||
let viewport: UIEventSource<HTMLDivElement> = new UIEventSource<HTMLDivElement>(undefined)
|
let viewport: UIEventSource<HTMLDivElement> = new UIEventSource<HTMLDivElement>(undefined)
|
||||||
let mapproperties: MapProperties = state.mapProperties
|
let mapproperties: MapProperties = state.mapProperties
|
||||||
let searchOpened = state.searchState.showSearchDrawer
|
let searchOpened = state.searchState.showSearchDrawer
|
||||||
|
let isOnline = IsOnline.isOnline
|
||||||
|
let searchIsOpened = state.guistate.pageStates.search
|
||||||
|
|
||||||
let metatags = state.userRelatedState.preferencesAsTags
|
let metatags = state.userRelatedState.preferencesAsTags
|
||||||
Orientation.singleton.startMeasurements()
|
Orientation.singleton.startMeasurements()
|
||||||
|
@ -183,7 +185,6 @@
|
||||||
mapIsDragged.ping()
|
mapIsDragged.ping()
|
||||||
}
|
}
|
||||||
|
|
||||||
let isOnline = IsOnline.isOnline
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
@ -330,12 +331,14 @@
|
||||||
<InsetSpacer height={AndroidPolyfill.getInsetSizes().bottom}/>
|
<InsetSpacer height={AndroidPolyfill.getInsetSizes().bottom}/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Search results -->
|
||||||
<DrawerRight shown={state.searchState.showSearchDrawer}>
|
<DrawerRight shown={state.searchState.showSearchDrawer}>
|
||||||
<SearchResults {state} />
|
<SearchResults {state} />
|
||||||
</DrawerRight>
|
</DrawerRight>
|
||||||
|
|
||||||
<!-- Top components -->
|
<!-- Top components -->
|
||||||
<div class="z-4 pointer-events-none absolute left-0 top-0 w-full">
|
<div class="z-4 pointer-events-none absolute left-0 top-0 w-full">
|
||||||
|
<!-- Grayed out top bar with menu button, theme intro and search bar (+ search button -->
|
||||||
<div
|
<div
|
||||||
id="top-bar"
|
id="top-bar"
|
||||||
class="bg-black-light-transparent pointer-events-auto flex flex-wrap items-center justify-between px-4 py-1"
|
class="bg-black-light-transparent pointer-events-auto flex flex-wrap items-center justify-between px-4 py-1"
|
||||||
|
@ -399,6 +402,7 @@
|
||||||
</If>
|
</If>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Panel for screenreader users -->
|
||||||
<div class="pointer-events-auto float-right mt-1 flex flex-col px-1 max-[480px]:w-full sm:m-2">
|
<div class="pointer-events-auto float-right mt-1 flex flex-col px-1 max-[480px]:w-full sm:m-2">
|
||||||
<If condition={state.visualFeedback}>
|
<If condition={state.visualFeedback}>
|
||||||
{#if $selectedElement === undefined}
|
{#if $selectedElement === undefined}
|
||||||
|
@ -409,8 +413,8 @@
|
||||||
</If>
|
</If>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="float-left m-1 flex flex-col sm:mt-2">
|
<!-- Current view tools: compass, uploading images counter, extra link, pending changes, ... -->
|
||||||
<!-- Current view tools -->
|
<div class="float-left m-1 flex flex-col sm:mt-2 sm:block" style="transition: color" class:hidden={$searchIsOpened}>
|
||||||
{#if currentViewLayer?.tagRenderings && currentViewLayer.hasDefaultIcon()}
|
{#if currentViewLayer?.tagRenderings && currentViewLayer.hasDefaultIcon()}
|
||||||
<MapControlButton
|
<MapControlButton
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
|
@ -446,6 +450,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 'Data is loading' panel -->
|
||||||
<div class="flex w-full flex-col items-center justify-center">
|
<div class="flex w-full flex-col items-center justify-center">
|
||||||
<!-- Flex and w-full are needed for the positioning -->
|
<!-- Flex and w-full are needed for the positioning -->
|
||||||
<!-- Centermessage -->
|
<!-- Centermessage -->
|
||||||
|
@ -454,6 +459,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Menu drawer -->
|
||||||
<div class="h-full overflow-hidden">
|
<div class="h-full overflow-hidden">
|
||||||
<DrawerLeft shown={state.guistate.pageStates.menu}>
|
<DrawerLeft shown={state.guistate.pageStates.menu}>
|
||||||
<div class="h-screen overflow-y-auto">
|
<div class="h-screen overflow-y-auto">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue