Skip to content

Commit a41d234

Browse files
committed
Merge branch 'master' of github.com:CoderBotOrg/vue-app
2 parents ad66bbb + d8e4d5f commit a41d234

File tree

2 files changed

+28
-23
lines changed

2 files changed

+28
-23
lines changed

src/components/Gallery.vue

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,32 @@
1212
<template v-if="photos.length == 0">
1313
<br>
1414
<h3>Galleria vuota!</h3>
15-
</template>
16-
<template v-else>
17-
<v-card>
18-
<v-container grid-list-sm fluid>
19-
<v-layout row wrap>
20-
<v-flex v-for="n in photos.length" :key="n" xs3 d-flex>
21-
<v-card flat tile class="d-flex">
22-
<v-layout column>
23-
<div class="subheading">{{ photos[n-1].name }} <v-btn v-on:click="deletePhoto(photos[n-1].name)" flat icon color="red lighten-2">
24-
<v-icon>delete</v-icon>
25-
</v-btn>
26-
</div>
15+
</template>
16+
<template v-else>
17+
<v-card>
18+
<v-container grid-list-sm fluid>
19+
<v-layout row wrap>
20+
<v-flex v-for="n in photos.length" :key="n" xs3 d-flex>
21+
<v-card flat tile class="d-flex">
22+
<v-layout column>
23+
<div class="subheading">{{ photos[n-1].name }} <v-btn v-on:click="deletePhoto(photos[n-1].name)" flat icon color="red lighten-2">
24+
<v-icon>delete</v-icon>
25+
</v-btn>
26+
</div>
27+
<a :href="CBv1+'/photos/'+photos[n-1].name" target="_blank">
2728
<v-img :src="CBv1+'/photos/'+photos[n-1].name" aspect-ratio="1" class="grey lighten-2">
2829
<v-layout slot="placeholder" fill-height align-center justify-center ma-0>
2930
<v-progress-circular indeterminate color="grey lighten-5"></v-progress-circular>
3031
</v-layout>
3132
</v-img>
32-
</v-layout>
33-
</v-card>
34-
</v-flex>
35-
</v-layout>
36-
</v-container>
37-
</v-card>
38-
</template>
33+
</a>
34+
</v-layout>
35+
</v-card>
36+
</v-flex>
37+
</v-layout>
38+
</v-container>
39+
</v-card>
40+
</template>
3941
</v-flex>
4042
</v-layout>
4143
</v-content>
@@ -86,11 +88,13 @@ export default {
8688
8789
</script>
8890
<style scoped>
89-
.v-card{
91+
.v-card {
9092
margin: 10px;
9193
}
92-
.container{
94+
95+
.container {
9396
padding-top: 0px;
94-
margin-top:0px;
97+
margin-top: 0px;
9598
}
96-
</style>
99+
100+
</style>

src/main.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ h3
3131
.v-toolbar__title
3232
font-family: 'Overpass'
3333
font-size: 24px
34+
letter-spacing: 0px
3435

3536
.v-tabs__div
3637
font-size: 15px

0 commit comments

Comments
 (0)