Skip to content

Commit c7d2411

Browse files
committed
Use card in list items
1 parent c3c164b commit c7d2411

File tree

5 files changed

+24
-7
lines changed

5 files changed

+24
-7
lines changed

src/app/GlobalComponentsLoader.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
QScrollArea,
2222
QItemSide,
2323
QItemMain,
24+
QItemTile,
2425
QItemSeparator,
2526
QLayout,
2627
QSpinnerMat
@@ -56,6 +57,7 @@ export function registerGlobalComponents() {
5657
Vue.component('QSideLink', QSideLink)
5758
Vue.component('QScrollArea', QScrollArea)
5859
Vue.component('QItemSide', QItemSide)
60+
Vue.component('QItemTile', QItemTile)
5961
Vue.component('QItemMain', QItemMain)
6062
Vue.component('QItemSeparator', QItemSeparator)
6163
Vue.component('QLayout', QLayout)

src/app/pages/Days/Day.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<template>
2-
<q-card v-if="!isLoading">
2+
<div v-if="!isLoading">
33
<div class='day'>
44
<q-card-title>{{dateLabel}}</q-card-title>
55

66
<div v-for="gig in day.gigs">
77
<GigRow :gig ="gig" :onClick="goTo"/>
88
</div>
99
</div>
10-
</q-card>
10+
</div>
1111
</template>
1212

1313
<script>

src/app/pages/Days/GigRow.vue

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
<template>
2-
<q-item @click="onClick(gig)" :key="gig.id" highlight link striped>
3-
{{gig.title}} - {{gig.place}}
4-
</q-item>
2+
<!--<q-card @click="onClick(gig)" :key="gig.id" highlight link striped>-->
3+
<!--{{gig.title}} <br/> {{gig.place}}-->
4+
<!--</q-card>-->
5+
<q-card @click="onClick(gig)" highlight>
6+
<q-item>
7+
<q-item-side :image="gig.image_url" />
8+
<q-item-main>
9+
<q-item-tile label>{{gig.title}}</q-item-tile>
10+
<q-item-tile sublabel>{{gig.place}}</q-item-tile>
11+
</q-item-main>
12+
</q-item>
13+
</q-card>
514
</template>
615

716
<script>
817
export default {
918
props: { gig: Object, onClick: Function }
1019
}
1120
</script>
21+
22+
<style lang="stylus" type="text/stylus">
23+
.q-item:hover {
24+
background: alpha(#795548, 30%);
25+
cursor: pointer;
26+
}
27+
</style>

src/app/pages/GigsToday/__test__/GigsToday.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { fakeGigsByDay, FIRST_DAY } from '../../../services/__mocks__/gigs-sampl
44
import PageObject from '../../../__page_objects__/PageObject'
55
import { cloneProductionStore, stubNow } from '../../../../../test/helpers'
66

7-
87
describe('Gigs Today', () => {
98
const FIRST_DAY_GIG_TEXTS = FIRST_DAY.gigs.map(
109
gig => gig.title + ' - ' + gig.place)

src/app/shared-components/Toolbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<q-toolbar>
3-
<q-btn flat @click="clickDrawer()">
3+
<q-btn flat @click="clickDrawer()" big>
44
<q-icon name="menu" />
55
</q-btn>
66
<q-toolbar-title>

0 commit comments

Comments
 (0)