Browse Source

minor style improvements

Olivier Massot 4 years ago
parent
commit
594eb71cdd
3 changed files with 4 additions and 10 deletions
  1. 3 3
      components/Ui/Map/Structures.vue
  2. 1 1
      lang/fr-FR.js
  3. 0 6
      layouts/default.vue

+ 3 - 3
components/Ui/Map/Structures.vue

@@ -138,8 +138,8 @@ export default Vue.extend({
       }
       this.map.addLayer(clusters)
     },
-    setMapBounds (bounds: L.LatLngBoundsExpression): void {
-      this.map.fitBounds(bounds, { padding: [100, 60] }) // << without this, the new bounds may not be properly set when the current view overlaps the new bounds.
+    setMapBounds (bounds: L.LatLngBoundsExpression, padding: [number, number] = [0, 0]): void {
+      this.map.fitBounds(bounds, { padding }) // << without this, the new bounds may not be properly set when the current view overlaps the new bounds.
     },
     resetBounds (): void {
       this.setMapBounds(this.defaultBounds)
@@ -162,7 +162,7 @@ export default Vue.extend({
       if (!(coords.length > 0)) {
         return false
       }
-      this.setMapBounds(coords)
+      this.setMapBounds(coords, [120, 120])
       return true
     }
   }

+ 1 - 1
lang/fr-FR.js

@@ -1,6 +1,6 @@
 export default (_context, _locale) => {
   return ({
-    member_companies: 'Nos Structures adhérentes',
+    member_companies: 'Nos structures adhérentes',
     map: 'Carte',
     list: 'Liste',
     no_result: 'Aucun résultat',

+ 0 - 6
layouts/default.vue

@@ -6,12 +6,6 @@
           <Nuxt keep-alive />
         </v-container>
       </v-main>
-
-      <v-footer
-        app
-      >
-        <span>&copy; Opentalent {{ new Date().getFullYear() }}</span>
-      </v-footer>
     </v-app>
   </main>
 </template>