|
2 | 2 | <div v-if="viewing" class="file-view"> |
3 | 3 | <div class="image-view" v-if="viewing.type == 'mp4'"> |
4 | 4 | <div class="video-big"> |
5 | | - <video class="player" height="100px" playsinline loop controls> |
6 | | - <source :src='`${dumpDirectory.replace(/[ ]/g, "\\ ")}/${viewing.dumpKey.replace(/[ ]/g, "\ ")}`' type="video/mp4"> |
| 5 | + <video class="player" height="440px" width="370px" playsinline loop controls> |
| 6 | + <source :src='`${dumpDirectory.replace(ws1, ws2)}/${viewing.dumpKey.replace(ws1, ws3)}`' type="video/mp4"> |
7 | 7 | </video> |
8 | 8 | </div> |
9 | 9 | </div> |
10 | 10 | <div class="image-view" v-else> |
11 | 11 | <div |
12 | 12 | class="image-big" |
13 | | - :style='{ "background-image": `url("file://${dumpDirectory.replace(/[ ]/g, "\\ ")}/${viewing.dumpKey.replace(/[ ]/g, "\ ")}")` }' |
| 13 | + :style='{ "background-image": `url("file://${dumpDirectory.replace(ws1, ws2)}/${viewing.dumpKey.replace(ws1, ws3)}")` }' |
14 | 14 | /> |
15 | 15 | </div> |
16 | 16 | <div class="info-area"> |
|
22 | 22 | style="flex-grow:1;margin-right:10px;" |
23 | 23 | @click="$root.$emit('previousItem')" |
24 | 24 | v-shortkey="['arrowleft']" @shortkey="$root.$emit('previousItem')" |
| 25 | + v-tippy="$store.state.tooltipDefault" |
| 26 | + title="Arrow keys work too..." |
25 | 27 | >Previous</button> |
26 | 28 | <button |
27 | 29 | class="coolbtn margin-vertical" |
28 | 30 | style="flex-grow:1" |
29 | 31 | @click="$root.$emit('nextItem')" |
30 | 32 | v-shortkey="['arrowright']" @shortkey="$root.$emit('nextItem')" |
| 33 | + v-tippy="$store.state.tooltipDefault" |
| 34 | + title="You can use your left and right arrow keys btw" |
31 | 35 | >Next</button> |
32 | 36 | </div> |
33 | 37 |
|
@@ -114,7 +118,10 @@ export default { |
114 | 118 | data() { |
115 | 119 | return { |
116 | 120 | saved: false, |
117 | | - savedAs: false |
| 121 | + savedAs: false, |
| 122 | + ws1: /[ ]/g, |
| 123 | + ws2: "\\ ", |
| 124 | + ws3: "\ " |
118 | 125 | }; |
119 | 126 | }, |
120 | 127 | computed: { |
@@ -215,8 +222,7 @@ export default { |
215 | 222 | right: 0; |
216 | 223 | margin: auto; |
217 | 224 | min-height: 200px; |
218 | | - margin-top: 100px; |
219 | | - float: left; |
| 225 | +
|
220 | 226 | } |
221 | 227 | .image-big { |
222 | 228 | height: 70vh; |
|
0 commit comments