forked from jsnbuchanan/crowd-funder-for-time-pwa
Map z-index fix + adjustments
- Set map z-index lower than nav - Relocated search box to account for conditional visibility - Various conditional fixes - Spacing adjustments
This commit is contained in:
@@ -11,30 +11,9 @@
|
|||||||
|
|
||||||
<OnboardingDialog ref="onboardingDialog" />
|
<OnboardingDialog ref="onboardingDialog" />
|
||||||
|
|
||||||
<!-- Quick Search -->
|
|
||||||
<div
|
|
||||||
id="QuickSearch"
|
|
||||||
class="mt-8 mb-4 flex"
|
|
||||||
:style="{ visibility: isSearchVisible ? 'visible' : 'hidden' }"
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
v-model="searchTerms"
|
|
||||||
type="text"
|
|
||||||
placeholder="Search…"
|
|
||||||
class="block w-full rounded-l border border-r-0 border-slate-400 px-3 py-2"
|
|
||||||
@keyup.enter="searchSelected()"
|
|
||||||
/>
|
|
||||||
<button
|
|
||||||
class="px-4 rounded-r bg-slate-200 border border-l-0 border-slate-400"
|
|
||||||
@click="searchSelected()"
|
|
||||||
>
|
|
||||||
<font-awesome icon="magnifying-glass" class="fa-fw"></font-awesome>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Result Tabs -->
|
<!-- Result Tabs -->
|
||||||
<!-- Top Level Selection -->
|
<!-- Top Level Selection -->
|
||||||
<div class="text-center text-slate-500 border-b border-slate-300 mb-4">
|
<div class="text-center text-slate-500 border-b border-slate-300 mt-4 mb-2">
|
||||||
<ul class="flex flex-wrap justify-center gap-4 -mb-px">
|
<ul class="flex flex-wrap justify-center gap-4 -mb-px">
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
@@ -146,6 +125,27 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Quick Search -->
|
||||||
|
<div
|
||||||
|
id="QuickSearch"
|
||||||
|
class="mt-6 mb-4 flex"
|
||||||
|
:style="{ display: isSearchVisible ? 'flex' : 'none' }"
|
||||||
|
>
|
||||||
|
<input
|
||||||
|
v-model="searchTerms"
|
||||||
|
type="text"
|
||||||
|
placeholder="Search…"
|
||||||
|
class="block w-full rounded-l border border-r-0 border-slate-400 px-3 py-2"
|
||||||
|
@keyup.enter="searchSelected()"
|
||||||
|
/>
|
||||||
|
<button
|
||||||
|
class="px-4 rounded-r bg-slate-200 border border-l-0 border-slate-400"
|
||||||
|
@click="searchSelected()"
|
||||||
|
>
|
||||||
|
<font-awesome icon="magnifying-glass" class="fa-fw"></font-awesome>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div v-if="isLocalActive">
|
<div v-if="isLocalActive">
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<button
|
<button
|
||||||
@@ -159,7 +159,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="isMappedActive && !tempSearchBox">
|
<div v-if="isMappedActive && !tempSearchBox">
|
||||||
<div class="mt-4 h-96 w-5/6 mx-auto">
|
<div class="mt-6 h-96 w-full mx-auto">
|
||||||
<l-map
|
<l-map
|
||||||
ref="projectMap"
|
ref="projectMap"
|
||||||
@ready="onMapReady"
|
@ready="onMapReady"
|
||||||
@@ -167,6 +167,7 @@
|
|||||||
@movestart="onMoveStart"
|
@movestart="onMoveStart"
|
||||||
@zoomend="onZoomEnd"
|
@zoomend="onZoomEnd"
|
||||||
@zoomstart="onZoomStart"
|
@zoomstart="onZoomStart"
|
||||||
|
class="z-40"
|
||||||
>
|
>
|
||||||
<l-tile-layer
|
<l-tile-layer
|
||||||
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
||||||
@@ -197,14 +198,18 @@
|
|||||||
-->
|
-->
|
||||||
</span>
|
</span>
|
||||||
<span v-else-if="isAnywhereActive"
|
<span v-else-if="isAnywhereActive"
|
||||||
>No projects were found with that search.</span
|
>No {{ isProjectsActive ? 'projects' : 'people' }} were found with that search.</span
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Results List -->
|
<!-- Results List -->
|
||||||
<InfiniteScroll @reached-bottom="loadMoreData">
|
<InfiniteScroll @reached-bottom="loadMoreData">
|
||||||
<ul id="listDiscoverResults">
|
<ul
|
||||||
|
id="listDiscoverResults"
|
||||||
|
class="border-t border-slate-300 mt-6"
|
||||||
|
v-if="projects.length > 0 || userProfiles.length > 0"
|
||||||
|
>
|
||||||
<!-- Projects List -->
|
<!-- Projects List -->
|
||||||
<template v-if="isProjectsActive">
|
<template v-if="isProjectsActive">
|
||||||
<li
|
<li
|
||||||
|
|||||||
Reference in New Issue
Block a user