made bar linear
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
soraefir 2023-07-13 18:57:49 +02:00
parent 584649ec22
commit 707a7c93a1
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
3 changed files with 23 additions and 66 deletions

View File

@ -2147,63 +2147,6 @@ pre {
[v-cloak] { [v-cloak] {
display: none; } display: none; }
.list-group {
display: -ms-flexbox;
display: -webkit-box;
display: flex;
-ms-flex-direction: column;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
flex-direction: column;
padding-left: 0;
margin-bottom: 0;
min-height: 100%; }
.list-group-item-action {
width: 100%;
color: #495057;
text-align: inherit; }
.list-group-item-action:focus,
.list-group-item-action:hover {
z-index: 1;
color: #495057;
text-decoration: none;
background-color: #f8f9fa; }
.list-group-item-action:active {
color: #212529;
background-color: #e9ecef; }
.list-group-item {
position: relative;
display: block;
padding: .75rem 1.25rem;
margin-bottom: -1px;
background-color: #fff;
border: 1px solid rgba(0, 0, 0, 0.125); }
.list-group-item:first-child {
border-top-left-radius: .25rem;
border-top-right-radius: .25rem; }
.list-group-item:last-child {
margin-bottom: 0;
border-bottom-right-radius: .25rem;
border-bottom-left-radius: .25rem; }
.list-group-item.disabled,
.list-group-item:disabled {
color: #6c757d;
pointer-events: none;
background-color: #fff; }
.list-group-item.active {
z-index: 2;
color: #fff;
background-color: #007bff;
border-color: #007bff; }
/** /**
* Reset * Reset
*/ */
@ -4016,5 +3959,20 @@ input:-webkit-autofill {
} }
.list-group { .list-group {
margin-top: 16px; overflow: auto;
white-space: nowrap;
scrollbar-width: none;
padding: 1rem 0rem;
}
.list-group-item {
background-color: #fff;
border: 1px solid rgba(0, 0, 0, 0.125);
display: inline-block;
position: relative;
}
.list-group-item div {
display: block;
padding: 0.5rem 1.5rem;
} }

View File

@ -280,9 +280,9 @@ const app = new Vue({
e.flight = undefined; e.flight = undefined;
e.step_title = e.step_title || []; e.step_title = e.step_title || [];
} }
}); });
this.debounceSave = _.debounce(this.save_data, 500) this.debounceSave = _.debounce(this.save_data, 500)
this.debounceSearch = {"hotel":_.debounce((q)=>{this.querying.hotel=true;this.search_nominatim(q,(r)=>(r.type=="hotel" || r.type=="hostel")).then((r)=>{this.querying.hotel=false});}, 500), this.debounceSearch = {"hotel":_.debounce((q)=>{this.querying.hotel=true;this.search_nominatim(q,(r)=>(r.type=="hotel" || r.type=="hostel")).then((r)=>{this.querying.hotel=false});}, 500),
"restaurants":_.debounce((q)=>{this.querying.food=true;this.search_nominatim(q,(r)=>(is_restauration_type(r))).then((r)=>{this.querying.food=false});}, 500), "restaurants":_.debounce((q)=>{this.querying.food=true;this.search_nominatim(q,(r)=>(is_restauration_type(r))).then((r)=>{this.querying.food=false});}, 500),

View File

@ -1,9 +1,8 @@
draggable(tag='ul' :list='journey_data.main' class='col-1 list-group p-abs' handle='.handle') draggable(tag='ul' :list='journey_data.main' class='list-group bg-dark' handle='.handle')
div.list-group-item.handle(v-for='(element, idx) in journey_data.main' :key='idx' @click='sel_section(idx)' :style='journey_step_data.section==idx?"left:10px":""') div.list-group-item.handle(v-for='(element, idx) in journey_data.main' :key='idx' @click='sel_section(idx)' :style='journey_step_data.section==idx?"background:red":""')
span.text {{element.title}} div.text {{element.title}}
//- input.col-12.input(disabled='' :value='element.title' style='display:block;margin:0;')
i.fa.fa-times.close.fright(style='top:2px;right:2px;position:absolute;' @click='rm_section(idx)') i.fa.fa-times.close.fright(style='top:2px;right:2px;position:absolute;' @click='rm_section(idx)')
div.list-group-item() div.list-group-item()
span.text Add Section div.text Add Section
i.fa.fa-plus.add(@click='add_section()') i.fa.fa-plus.add(style='top:12px;right:5px;position:absolute;' @click='add_section()')