mobile layout improvement

This commit is contained in:
les 2021-05-20 10:48:20 +02:00
parent 8a0738b268
commit 16caff8a73
No known key found for this signature in database
GPG key ID: 352918250B012177
5 changed files with 10 additions and 7 deletions

View file

@ -10,9 +10,9 @@
.d-none.dt-end {{event.end_datetime|unixFormat('YYYY-MM-DD HH:mm')}}
a.place.d-block.p-location.pl-0(text color='primary' @click="$emit('placeclick', event.place.id)") <v-icon>mdi-map-marker</v-icon> {{event.place.name}}
v-card-actions.actions.justify-space-between
v-card-actions.pt-0.actions.justify-space-between
.tags
v-chip.ml-1.px-2(v-for='tag in event.tags' small
v-chip.ml-1.mt-1(v-for='tag in event.tags.slice(0,6)' small
:key='tag' outlined color='primary' @click="$emit('tagclick', tag)") {{tag}}
v-menu(offset-y)

View file

@ -12,9 +12,10 @@
offset-y bottom open-on-hover transition="slide-y-transition")
template(v-slot:activator="{ on, attrs }")
v-btn.ml-1(v-bind='attrs' v-on='on' color='primary' text) {{$t('common.places')}}
v-list
v-list(subheaders two-lines)
v-list-item(v-for='instance in settings.trusted_instances'
:key='instance.name'
target='_blank'
:href='instance.url'
two-line)
v-list-item-avatar

View file

@ -6,7 +6,7 @@
inset color='primary'
hide-details
:label="$t('event.show_recurrent')")
v-autocomplete.mt-0(
v-autocomplete.mt-0.pt-0(
:label='$t("common.search")'
:items='keywords'
hide-details

View file

@ -307,6 +307,8 @@ export default {
<style lang='less'>
.title {
margin-bottom: 25px;
color: yellow;
font-weight: 300 !important;
}
.main_image {
// width: 100%;

View file

@ -6,8 +6,8 @@
Announcement(v-for='announcement in announcements' :key='`a_${announcement.id}`' :announcement='announcement')
//- Calendar and search bar
v-row
.col-xl-5.col-lg-5.col-md-7.col-sm-12.col-xs-12
v-row.pt-0.pt-sm-2
.col-xl-5.col-lg-5.col-md-7.col-sm-12.col-xs-12.pa-4.pa-sm-3
//- this is needed as v-calendar does not support SSR
//- https://github.com/nathanreyes/v-calendar/issues/336
client-only
@ -18,7 +18,7 @@
v-chip(v-if='selectedDay' close @click:close='dayChange({ date: selectedDay})') {{selectedDay}}
//- Events
#events.mt-1
#events.mb-2.mt-1.pl-1.pl-md-0
//- div.event(v-for='(event, idx) in events' :key='event.id' v-intersect="(entries, observer, isIntersecting) => intersecting[event.id] = isIntersecting")
Event(:event='event' v-for='(event, idx) in visibleEvents' :key='event.id' @tagclick='tagClick' @placeclick='placeClick')