Skip to content

Commit

Permalink
✨ new search progress
Browse files Browse the repository at this point in the history
  • Loading branch information
moisout committed Sep 11, 2020
1 parent ef76893 commit df60a54
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
11 changes: 10 additions & 1 deletion client/components/search/VerticalShelf.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,13 @@ export default {
};
</script>

<style></style>
<style lang="scss">
.vertical-shelf {
display: flex;
flex-direction: column;
.vertical-shelf-container {
@include viewtube-grid;
}
}
</style>
10 changes: 7 additions & 3 deletions client/pages/results.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default {
watchQuery: true,
asyncData({ query }) {
query.type = 'all';
query.limit = 30;
query.limit = 20;
const searchParams = SearchParams.parseQueryJson(query, query.search_query);
return ViewtubeApi.api
.search({ params: searchParams })
Expand Down Expand Up @@ -246,20 +246,21 @@ export default {
width: 100%;
max-width: $main-width;
margin: 0 auto;
padding: 0 15px;
z-index: 10;
display: grid;
box-sizing: border-box;
@include viewtube-grid;
.related-searches-container {
grid-row: 1;
grid-column: 1 / span 4;
grid-column: 1 / -1;
overflow: auto hidden;
scrollbar-width: thin;
box-sizing: border-box;
height: 45px;
width: 100%;
position: relative;
margin: 0 15px;
.related-searches {
display: flex;
Expand All @@ -277,8 +278,11 @@ export default {
.channels {
}
.vertical-shelf {
grid-column-start: 2;
grid-column-end: -1;
}
.compact-shelf {
grid-column: 1 / -1;
}
.playlists {
}
Expand Down

0 comments on commit df60a54

Please sign in to comment.