From 1f3db375a4be2ba368f29cd2f0e490e9d64ab0dc Mon Sep 17 00:00:00 2001 From: sora-ext Date: Thu, 27 Feb 2025 17:32:45 +0100 Subject: [PATCH] Update template/module/journey_leg.pug --- .../{journey_step.pug => journey_leg.pug} | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) rename template/module/{journey_step.pug => journey_leg.pug} (79%) diff --git a/template/module/journey_step.pug b/template/module/journey_leg.pug similarity index 79% rename from template/module/journey_step.pug rename to template/module/journey_leg.pug index f8b5652..aee7a18 100644 --- a/template/module/journey_step.pug +++ b/template/module/journey_leg.pug @@ -16,8 +16,25 @@ div(v-for="(e, idx) in journey.data.main", :key="idx") :value="journey.date_sel() + ' (' + journey.sel_day + ')'" ) .row - .col-9.col-ssm-12 + .map-container(:class="{ 'col-9': !drawer_active, 'col-7': drawer_active }") include map.pug + .drawer-container(:class="{ 'col-3': drawer_active, 'col-0': !drawer_active }") + .row.text-center + .input.text-dark(style="width: 100%") + input( + type="search" + @input="search_active" + placeholder="Search ... " + ) + ul + li( + v-for="item in query.res" + :key="item.id" + @mouseover="drawer_hover_item(item)" + @mouseleave="drawer_hover_item()" + @click="drawer_click_item(item)" ) + | {{ item.name }} + .col-3.col-ssm-12 .row.text-center div @@ -42,7 +59,7 @@ div(v-for="(e, idx) in journey.data.main", :key="idx") open-direction="bottom", :options="query.res", :searchable="true", - :loading="query.act && query.type=='hotel'", + :loading="query.type=='hotel'", :internal-search="false", :clear-on-select="false", :options-limit="50", @@ -62,7 +79,7 @@ div(v-for="(e, idx) in journey.data.main", :key="idx") :multiple="true", :options="query.res", :searchable="true", - :loading="query.act && query.type == 'restaurant'", + :loading="query.type == 'restaurant'", :internal-search="false", :clear-on-select="false", :options-limit="50", @@ -82,7 +99,7 @@ div(v-for="(e, idx) in journey.data.main", :key="idx") :multiple="true", :options="query.res", :searchable="true", - :loading="query.act && query.type=='place'", + :loading="query.type=='place'", :internal-search="false", :clear-on-select="false", :options-limit="50",