diff --git a/js/package.json b/js/package.json index 0936078fa..9f31a85e1 100644 --- a/js/package.json +++ b/js/package.json @@ -14,6 +14,7 @@ "vue-i18n-extract": "vue-i18n-extract" }, "dependencies": { + "@mdi/font": "^4.5.95", "apollo-absinthe-upload-link": "^1.5.0", "apollo-cache-inmemory": "^1.5.1", "apollo-client": "^2.5.1", @@ -23,22 +24,19 @@ "graphql": "^14.5.8", "graphql-tag": "^2.10.1", "leaflet": "^1.4.0", - "line-clamp": "1.0.0", "lodash": "^4.17.11", "ngeohash": "^0.6.3", "register-service-worker": "^1.6.2", "tippy.js": "^5.0.2", "tiptap": "^1.26.0", "tiptap-extensions": "^1.28.0", - "typeface-signika": "0.0.72", "vue": "^2.6.10", "vue-apollo": "^3.0.0-rc.6", "vue-class-component": "^7.0.2", "vue-i18n": "^8.14.0", "vue-property-decorator": "^8.1.0", "vue-router": "^3.0.6", - "vue2-leaflet": "^2.0.3", - "vuex": "^3.1.0" + "vue2-leaflet": "^2.0.3" }, "devDependencies": { "@types/chai": "^4.2.3", diff --git a/js/public/index.html b/js/public/index.html index 43c959275..413453152 100644 --- a/js/public/index.html +++ b/js/public/index.html @@ -6,7 +6,6 @@ - mobilizon diff --git a/js/src/App.vue b/js/src/App.vue index b597c2a10..ed93be681 100644 --- a/js/src/App.vue +++ b/js/src/App.vue @@ -73,6 +73,10 @@ export default class App extends Vue { /* Buefy imports */ @import "~buefy/src/scss/buefy"; +/* Icons */ +$mdi-font-path: "~@mdi/font/fonts"; +@import "~@mdi/font/scss/materialdesignicons"; + .fade-enter-active, .fade-leave-active { transition: opacity .5s; } diff --git a/js/src/components/Event/EventListCard.vue b/js/src/components/Event/EventListCard.vue index f607fb3cb..ead3c4c44 100644 --- a/js/src/components/Event/EventListCard.vue +++ b/js/src/components/Event/EventListCard.vue @@ -58,7 +58,7 @@ export default {
-

{{ participation.event.title }}

+

{{ participation.event.title }}

{{ participation.event.physicalAddress.locality }} - @@ -129,7 +129,6 @@ import EventMixin from '@/mixins/event'; import { RouteName } from '@/router'; import { ICurrentUser } from '@/types/current-user.model'; import { IEventCardOptions } from './EventCard.vue'; -const lineClamp = require('line-clamp'); const defaultOptions: IEventCardOptions = { hideDate: true, @@ -142,9 +141,6 @@ const defaultOptions: IEventCardOptions = { components: { DateCalendarIcon, }, - mounted() { - lineClamp(this.$refs.title, 3); - }, apollo: { currentActor: { query: CURRENT_ACTOR_CLIENT, @@ -219,6 +215,10 @@ export default class EventListCard extends mixins(ActorMixin, EventMixin) { } .title { + display: -webkit-box; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; + overflow: hidden; font-weight: 400; line-height: 1em; font-size: 1.6em; diff --git a/js/src/components/NavBar.vue b/js/src/components/NavBar.vue index 6632a990d..6bdafa0e9 100644 --- a/js/src/components/NavBar.vue +++ b/js/src/components/NavBar.vue @@ -5,7 +5,7 @@