Merge pull request #102 from Deedone/fixes

Fix lazy wrapper's height in list mode
This commit is contained in:
Preston 2020-08-25 14:38:05 -04:00 committed by GitHub
commit fa3ac5638d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 2 deletions

View File

@ -8,6 +8,7 @@
appearance="result" appearance="result"
:data="result" :data="result"
:first-screen="index < 16" :first-screen="index < 16"
:layout="listType"
/> />
</ft-auto-grid> </ft-auto-grid>
</template> </template>

View File

@ -1,3 +1,7 @@
.lazyWrapper { .grid {
min-height: 264px; min-height: 264px;
} }
.list {
min-height: 131px;
}

View File

@ -22,6 +22,10 @@ export default Vue.extend({
firstScreen: { firstScreen: {
type: Boolean, type: Boolean,
required: true required: true
},
layout: {
type: String,
default: 'grid'
} }
}, },
data: function () { data: function () {

View File

@ -4,7 +4,10 @@
callback: onVisibilityChanged, callback: onVisibilityChanged,
once: true, once: true,
}" }"
class="lazyWrapper" :class="{
grid: layout === 'grid',
list: layout === 'list'
}"
> >
<ft-list-channel <ft-list-channel
v-if="data.type === 'channel' && visible" v-if="data.type === 'channel' && visible"