Skip to content

Commit 11132a5

Browse files
authored
refactor: remove extra StackLayout
1 parent 2219f51 commit 11132a5

File tree

1 file changed

+37
-38
lines changed

1 file changed

+37
-38
lines changed

vue-demo/app/components/Home.vue

Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,43 @@
11
<template>
22
<Page>
33
<ActionBar title="NativeFlix" />
4-
<StackLayout height="100%">
5-
<ListView
6-
height="100%"
7-
separatorColor="transparent"
8-
for="item in flicks"
9-
@itemTap="onFlickTap">
10-
<v-template>
11-
<GridLayout
12-
height="280"
13-
borderRadius="10"
14-
class="bg-secondary"
15-
rows="*, auto, auto"
16-
columns="*"
17-
margin="5 10"
18-
padding="0">
19-
<Image
20-
row="0"
21-
margin="0"
22-
stretch="aspectFill"
23-
:src="item.image"></Image>
24-
<Label
25-
row="1"
26-
margin="10 10 0 10"
27-
fontWeight="700"
28-
class="text-primary"
29-
fontSize="18"
30-
:text="item.title"></Label>
31-
<Label
32-
row="2"
33-
margin="0 10 10 10"
34-
class="text-secondary"
35-
fontSize="14"
36-
textWrap="true"
37-
:text="item.description"></Label>
38-
</GridLayout>
39-
</v-template>
40-
</ListView>
41-
</StackLayout>
4+
5+
<ListView
6+
height="100%"
7+
separatorColor="transparent"
8+
for="item in flicks"
9+
@itemTap="onFlickTap">
10+
<v-template>
11+
<GridLayout
12+
height="280"
13+
borderRadius="10"
14+
class="bg-secondary"
15+
rows="*, auto, auto"
16+
columns="*"
17+
margin="5 10"
18+
padding="0">
19+
<Image
20+
row="0"
21+
margin="0"
22+
stretch="aspectFill"
23+
:src="item.image"></Image>
24+
<Label
25+
row="1"
26+
margin="10 10 0 10"
27+
fontWeight="700"
28+
class="text-primary"
29+
fontSize="18"
30+
:text="item.title"></Label>
31+
<Label
32+
row="2"
33+
margin="0 10 10 10"
34+
class="text-secondary"
35+
fontSize="14"
36+
textWrap="true"
37+
:text="item.description"></Label>
38+
</GridLayout>
39+
</v-template>
40+
</ListView>
4241
</Page>
4342
</template>
4443

0 commit comments

Comments
 (0)