Mercurial > gemma
view client/src/App.vue @ 1210:f14293893430
fix: zoombuttons z-index
zoombuttons do not overlap bottleneck list anymore
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Mon, 19 Nov 2018 13:38:43 +0100 |
parents | 8df4ebbc5c3f |
children | ba8cd80d68b6 |
line wrap: on
line source
<template> <div id="app" class="main"> <div v-if="isAuthenticated" class="d-flex flex-column userinterface"> <div class="topbar d-flex"> <div class="mr-auto d-flex"> <Sidebar :routeName="routeName"></Sidebar> <div class="d-flex flex-column" style="max-width: 600px;"> <Search v-if="routeName == 'mainview'"></Search> <Bottlenecks v-if="routeName == 'mainview'"></Bottlenecks> <Imports v-if="routeName == 'mainview'"></Imports> <Staging v-if="routeName == 'mainview'"></Staging> </div> </div> <div class="ml-auto d-flex"> <Layers v-if="routeName == 'mainview'"></Layers> <Identify v-if="routeName == 'mainview'"></Identify> </div> </div> <div class="flex-fill"></div> <div class="d-flex flex-row align-items-end"> <Morphtool v-if="routeName == 'mainview'"></Morphtool> <Pdftool v-if="routeName == 'mainview'"></Pdftool> <Drawtool v-if="routeName == 'mainview'"></Drawtool> </div> <Zoom v-if="routeName == 'mainview'"></Zoom> </div> <div class="d-flex flex-column"> <router-view/> </div> </div> </template> <style lang="sass" scoped> .userinterface position: absolute top: 0 left: 0 height: 100vh width: 100vw z-index: 4 pointer-events: none .topbar padding-top: $offset margin-left: $offset margin-right: $offset position: relative z-index: 2 #app height: 100vh width: 100vw font-family: "Avenir", Helvetica, Arial, sans-serif -webkit-font-smoothing: antialiased -moz-osx-font-smoothing: grayscale text-align: center color: #2c3e50 </style> <script> /* * This is Free Software under GNU Affero General Public License v >= 3.0 * without warranty, see README.md and license for details. * * SPDX-License-Identifier: AGPL-3.0-or-later * License-Filename: LICENSES/AGPL-3.0.txt * * Copyright (C) 2018 by via donau * – Österreichische Wasserstraßen-Gesellschaft mbH * Software engineering by Intevation GmbH * * Author(s): * Thomas Junk <thomas.junk@intevation.de> * Markus Kottländer <markus.kottlaender@intevation.de> */ import { mapState } from "vuex"; export default { name: "app", computed: { ...mapState("user", ["isAuthenticated"]), routeName() { const routeName = this.$route.name; return routeName; } }, components: { Drawtool: () => import("./drawtool/Drawtool"), Morphtool: () => import("./morphtool/Morphtool"), Pdftool: () => import("./pdftool/Pdftool"), Zoom: () => import("./zoom/zoom"), Identify: () => import("./identify/Identify"), Layers: () => import("./layers/Layers"), Sidebar: () => import("./application/Sidebar"), Search: () => import("./application/Search"), Bottlenecks: () => import("./bottlenecks/Bottlenecks"), Imports: () => import("./imports/Imports.vue"), Staging: () => import("./staging/Staging.vue") } }; </script>