aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/components/LdButtonFullscreen.vue
diff options
context:
space:
mode:
authorZero~Informatique2019-12-21 03:32:20 +0100
committerZero~Informatique2019-12-21 03:32:20 +0100
commit6e7ee4d38fb3630a13d31592f0f6ae9bbe8e1bd6 (patch)
tree88ebce4634d26daa80718ab1526c728f55a983f0 /viewer/src/components/LdButtonFullscreen.vue
parent62005141132da1e9761598fa3e4b35b4dab38a89 (diff)
downloadldgallery-6e7ee4d38fb3630a13d31592f0f6ae9bbe8e1bd6.tar.gz
Implemented global components registration
Moved the fullscreen button as a global component (as demonstration) Improved the layout CSS
Diffstat (limited to 'viewer/src/components/LdButtonFullscreen.vue')
-rw-r--r--viewer/src/components/LdButtonFullscreen.vue25
1 files changed, 25 insertions, 0 deletions
diff --git a/viewer/src/components/LdButtonFullscreen.vue b/viewer/src/components/LdButtonFullscreen.vue
new file mode 100644
index 0000000..2302a27
--- /dev/null
+++ b/viewer/src/components/LdButtonFullscreen.vue
@@ -0,0 +1,25 @@
1<template>
2 <fa-icon icon="expand-arrows-alt" class="button-fullscreen" @click="$uiStore.toggleFullscreen()" />
3</template>
4
5<script lang="ts">
6import { Component, Vue } from "vue-property-decorator";
7
8@Component
9export default class LdButtonFullscreen extends Vue {}
10</script>
11
12<style lang="scss">
13.button-fullscreen {
14 position: fixed;
15 top: 0;
16 right: 0;
17 margin: 3px 10px;
18 opacity: 50%;
19 font-size: 1.5em;
20 color: white;
21 mix-blend-mode: difference;
22 cursor: pointer;
23 z-index: 4;
24}
25</style>