Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
move controls to top
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsine committed Jun 20, 2023
1 parent 773956a commit 75e14dc
Showing 1 changed file with 27 additions and 23 deletions.
50 changes: 27 additions & 23 deletions pages/user/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,29 +141,6 @@
</a>
</template>
</div>
<div class="card search-controls">
<div class="sort-controls">
<div class="labeled-control">
<span class="labeled-control__label">Sort by</span>
<Multiselect
v-model="sortType"
placeholder="Select one"
class="search-controls__sorting labeled-control__control"
track-by="display"
label="display"
:options="sortTypes"
:searchable="false"
:close-on-select="true"
:show-labels="false"
:allow-empty="false"
>
<template #singleLabel="{ option }">
{{ option.display }}
</template>
</Multiselect>
</div>
</div>
</div>
</div>
<div class="normal-page__content">
<Promotion />
Expand Down Expand Up @@ -203,6 +180,29 @@
</button>
</div>
</nav>
<div class="card search-controls">
<div class="sort-controls">
<div class="labeled-control">
<span class="labeled-control__label">Sort by</span>
<Multiselect
v-model="sortType"
placeholder="Select one"
class="search-controls__sorting labeled-control__control"
track-by="display"
label="display"
:options="sortTypes"
:searchable="false"
:close-on-select="true"
:show-labels="false"
:allow-empty="false"
>
<template #singleLabel="{ option }">
{{ option.display }}
</template>
</Multiselect>
</div>
</div>
</div>
<div
v-if="projects.length > 0"
class="project-list"
Expand Down Expand Up @@ -508,6 +508,10 @@ export default defineNuxtComponent({
.labeled-control__label {
white-space: nowrap;
}
.search-controls__sorting {
width: 15rem;
}
}
}
Expand Down

0 comments on commit 75e14dc

Please sign in to comment.