1
1
<template >
2
2
<div class =" organism-audio-modifier" >
3
+ <transition name =" fade" mode =" out-in" >
4
+ <lost-container v-if =" isAndroid" class =" audio-modifier__device-notification" direction =" column" >
5
+ <info-box v-bind =" deviceNotification" style-type =" error" />
6
+ </lost-container >
7
+ </transition >
3
8
<upload-modifier class =" audio-modifier__upload" v-bind =" uploadModifier" @reset =" onReset" @ready =" onReady" @info =" onChangeInfo" />
4
9
<lost-container v-if =" !complete" class =" audio-modifier" direction =" column" >
5
10
<transition name =" fade" mode =" out-in" >
@@ -15,14 +20,16 @@ import UploadModifier from '@/components/molecules/UploadModifier';
15
20
import InfoList from ' @/components/molecules/InfoList' ;
16
21
import InfoSlider from ' @/components/molecules/InfoSlider' ;
17
22
import { CONVERSION_COMPLETE , CONVERSION_START } from ' @/classes/FFMPEGWorker' ;
18
- import LostContainer from ' ../layouts/LostContainer' ;
23
+ import LostContainer from ' @/components/layouts/LostContainer' ;
24
+ import InfoBox from ' @/components/atoms/InfoBox' ;
19
25
20
26
export default {
21
27
components: {
22
28
LostContainer,
23
29
UploadModifier,
24
30
InfoList,
25
- InfoSlider
31
+ InfoSlider,
32
+ InfoBox
26
33
},
27
34
28
35
props: {
@@ -48,11 +55,25 @@ export default {
48
55
49
56
data () {
50
57
return {
58
+ isAndroid: false ,
51
59
complete: false ,
52
60
processing: false
53
61
};
54
62
},
55
63
64
+ computed: {
65
+ deviceNotification () {
66
+ return {
67
+ headline: null ,
68
+ text: ' Android support is experimental. <br>In case of problems, switch to another device.'
69
+ };
70
+ }
71
+ },
72
+
73
+ mounted () {
74
+ this .isAndroid = this .$isDeviceAndroid ();
75
+ },
76
+
56
77
methods: {
57
78
onChangeInfo (info ) {
58
79
switch (info) {
@@ -75,13 +96,35 @@ export default {
75
96
</script >
76
97
77
98
<style lang="postcss" scoped>
78
- div {
99
+ .organism-audio-modifier {
79
100
& ul {
80
101
padding : 0 ;
81
102
margin : 0 ;
82
103
list-style : none;
83
104
}
84
105
106
+ & .audio-modifier__device-notification {
107
+ lost-column : 12 / 12 ;
108
+ lost-offset : 0 / 12 ;
109
+ margin-top : -20 px ;
110
+ margin-bottom : 40 px ;
111
+
112
+ @media (--sm ) {
113
+ lost-column : 10 / 12 ;
114
+ lost-offset : 1 / 12 ;
115
+ }
116
+
117
+ @media (--md ) {
118
+ lost-column : 8 / 12 ;
119
+ lost-offset : 2 / 12 ;
120
+ }
121
+
122
+ @media (--lg ) {
123
+ lost-column : 6 / 12 ;
124
+ lost-offset : 3 / 12 ;
125
+ }
126
+ }
127
+
85
128
& .audio-modifier__upload + * {
86
129
margin-top : calc (40 / 320 * 100 vw );
87
130
0 commit comments