fix new appbar

This commit is contained in:
lesion
2022-11-19 13:20:15 +01:00
parent 258b5e0eac
commit 313b8c2afb
6 changed files with 62 additions and 41 deletions

View File

@@ -2,12 +2,22 @@ All notable changes to this project will be documented in this file.
### UNRELEASED ### UNRELEASED
- new plugin system - fix #17 - new plugin system - fix #17
- new "publish on telegram" plugin: thanks @fadelkon - new "publish on telegram" plugin: (thanks @fadelkon)
- i18n refactoring - i18n refactoring
- people can now choose the language displayed - fix #171 - people can now choose the language displayed - fix #171
- fix place "[Object]" issue - #194 - fix place "[Object]" issue - #194
- admin could choose a custom fallback image - fix #195 - admin could choose a custom fallback image - fix #195
- it is now possible NOT to enter the end time of an event - fix #188 - it is now possible NOT to enter the end time of an event - fix #188
- Wordpress plugin now supports MU installation
- add nominatim / openstreetmap feature (thanks @gothos)
- improve event import
- add Apple touch icon - fix #200
- improve navbar layout
- improve event layout
- new hide calendar option
- new hide thumbs from homepage option
- complete oauth2 refactoring
- fix random restart
### 1.5.6 - 22 set '22 ### 1.5.6 - 22 set '22

View File

@@ -9,6 +9,10 @@ li {
margin-left: 10px; margin-left: 10px;
} }
.v-main {
padding-top: 224px !important;
}
.v-dialog .theme--dark.v-card { .v-dialog .theme--dark.v-card {
background-color: #434343; background-color: #434343;
} }
@@ -21,8 +25,9 @@ li {
letter-spacing: normal !important; letter-spacing: normal !important;
} }
.v-main { /* https://github.com/vuetifyjs/vuetify/issues/8875#issuecomment-559900683 */
padding-top: 176px !important; .v-slide-group__prev {
display: none !important;
} }
.v-toolbar .v-list-item__subtitle, .v-toolbar .v-list-item__subtitle,
@@ -34,8 +39,8 @@ li {
#home { #home {
max-width: 1400px; max-width: 1400px;
padding: 0px; /* padding: 0px; */
overflow: hidden; /* overflow: hidden; */
} }
#events { #events {

View File

@@ -1,15 +1,17 @@
<template> <template>
<v-app-bar absolute prominent app hide-on-scroll <v-app-bar shrink-on-scroll promiment app src="/headerimage.png">
src="/headerimage.png">
<template v-slot:img="{ props }"> <template v-slot:img="{ props }">
<v-img <v-img
v-bind="props" v-bind="props"
:gradient="gradient" :gradient="gradient"></v-img>
></v-img>
</template> </template>
<v-app-bar-nav-icon to='/'> <v-app-bar-nav-icon to='/'>
<img src='/logo.png' height='40' /> <img src='/logo.png' height='40' />
</v-app-bar-nav-icon> </v-app-bar-nav-icon>
<!-- <v-text-field name='search' :label='$t("common.search")' dense outlined rounded hide-details :append-icon='mdiMagnify'/> -->
<v-list-item class='align-self-end' two-line> <v-list-item class='align-self-end' two-line>
<v-list-item-content> <v-list-item-content>
<h4 v-text='settings.title'></h4> <h4 v-text='settings.title'></h4>
@@ -126,7 +128,7 @@
<!-- .v-application--is-ltr .v-tabs--align-with-title > .v-tabs-bar:not(.v-tabs-bar--show-arrows):not(.v-slide-group--is-overflowing) > .v-slide-group__wrapper > .v-tabs-bar__content > .v-tab:first-child, <!-- .v-application--is-ltr .v-tabs--align-with-title > .v-tabs-bar:not(.v-tabs-bar--show-arrows):not(.v-slide-group--is-overflowing) > .v-slide-group__wrapper > .v-tabs-bar__content > .v-tab:first-child,
.v-application--is-ltr .v-tabs--align-with-title > .v-tabs-bar:not(.v-tabs-bar--show-arrows):not(.v-slide-group--is-overflowing) > .v-slide-group__wrapper > .v-tabs-bar__content > .v-tabs-slider-wrapper + .v-tab --> .v-application--is-ltr .v-tabs--align-with-title > .v-tabs-bar:not(.v-tabs-bar--show-arrows):not(.v-slide-group--is-overflowing) > .v-slide-group__wrapper > .v-tabs-bar__content > .v-tabs-slider-wrapper + .v-tab -->
<template v-slot:extension> <template v-slot:extension>
<v-tabs dense icons-and-text :align-with-title='$vuetify.breakpoint.smAndUp' optional> <v-tabs v-model='tab' optional dense icons-and-text>
<v-tab to='/'> <v-tab to='/'>
<span class='d-none d-sm-flex'>Home</span> <span class='d-none d-sm-flex'>Home</span>
<v-icon v-text='mdiHome' /> <v-icon v-text='mdiHome' />
@@ -145,6 +147,7 @@
</v-tab> </v-tab>
</v-tabs> </v-tabs>
</template> </template>
</v-app-bar> </v-app-bar>
<!-- //- v-app-bar(app aria-label='Menu' height=64) <!-- //- v-app-bar(app aria-label='Menu' height=64)
@@ -220,9 +223,9 @@ import { mdiPlus, mdiShareVariant, mdiLogin, mdiDotsVertical, mdiLogout, mdiAcco
export default { export default {
name: 'Nav', name: 'Appbar',
data () { data () {
return { mdiPlus, mdiShareVariant, mdiLogout, mdiLogin, mdiDotsVertical, mdiAccount, mdiCog, mdiRss, mdiHome, mdiInformation, locales } return { mdiPlus, mdiShareVariant, mdiLogout, mdiLogin, mdiDotsVertical, mdiAccount, mdiCog, mdiRss, mdiHome, mdiInformation, locales, tab: '' }
}, },
mixins: [clipboard], mixins: [clipboard],
computed: { computed: {

View File

@@ -1,6 +1,6 @@
<template> <template>
<v-app> <v-app>
<Nav/> <Appbar/>
<v-main> <v-main>
<Snackbar/> <Snackbar/>
<Confirm/> <Confirm/>
@@ -9,7 +9,9 @@
<v-btn class='ml-2 mt-2' outlined v-for='collection in collections' color='primary' :key='collection.id' :to='`/collection/${collection.name}`'>{{collection.name}}</v-btn> <v-btn class='ml-2 mt-2' outlined v-for='collection in collections' color='primary' :key='collection.id' :to='`/collection/${collection.name}`'>{{collection.name}}</v-btn>
</div> --> </div> -->
<!-- <v-fade-transition hide-on-leave> --> <!-- <v-fade-transition hide-on-leave> -->
<v-container>
<nuxt /> <nuxt />
</v-container>
<!-- </v-fade-transition> --> <!-- </v-fade-transition> -->
</v-main> </v-main>
<Footer/> <Footer/>
@@ -19,7 +21,7 @@
</template> </template>
<script> <script>
import Nav from '~/components/Nav.vue' import Appbar from '../components/Appbar.vue'
import Snackbar from '../components/Snackbar' import Snackbar from '../components/Snackbar'
import Footer from '../components/Footer' import Footer from '../components/Footer'
import Confirm from '../components/Confirm' import Confirm from '../components/Confirm'
@@ -42,7 +44,7 @@ export default {
// } // }
// }, // },
name: 'Default', name: 'Default',
components: { Nav, Snackbar, Footer, Confirm }, components: { Appbar, Snackbar, Footer, Confirm },
computed: { computed: {
...mapState(['settings']), ...mapState(['settings']),
// showBack () { // showBack () {

View File

@@ -2,7 +2,7 @@
v-app(app) v-app(app)
Snackbar Snackbar
Confirm Confirm
Nav Appbar
v-main(app) v-main(app)
v-fade-transition(hide-on-leave) v-fade-transition(hide-on-leave)
@@ -12,13 +12,13 @@ v-app(app)
</template> </template>
<script> <script>
import Nav from '~/components/Nav.vue' import Appbar from '~/components/Appbar.vue'
import Snackbar from '../components/Snackbar' import Snackbar from '../components/Snackbar'
import Footer from '../components/Footer' import Footer from '../components/Footer'
import Confirm from '../components/Confirm' import Confirm from '../components/Confirm'
export default { export default {
name: 'Default', name: 'Default',
components: { Nav, Snackbar, Footer, Confirm } components: { Appbar, Snackbar, Footer, Confirm }
} }
</script> </script>

View File

@@ -90,7 +90,8 @@
"collections": "Collections", "collections": "Collections",
"close": "Close", "close": "Close",
"plugins": "Plugins", "plugins": "Plugins",
"help_translate": "Help Translate" "help_translate": "Help Translate",
"show_map": "Show map"
}, },
"login": { "login": {
"description": "By logging in you can publish new events.", "description": "By logging in you can publish new events.",