Skip to content

Commit

Permalink
feat: make left-side navigation bar sticky (#439) (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Feb 6, 2024
1 parent 715f05c commit f25548e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion frontend/src/views/GeneDetailView/GeneDetailView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ const SECTIONS: Section[] = [
<v-container fluid>
<v-row>
<v-col cols="2">
<div v-if="geneInfoStore.storeState == StoreState.Active">
<div
v-if="geneInfoStore.storeState == StoreState.Active"
style="position: sticky; top: 20px"
>
<v-list v-model:opened="openedSection" rounded="lg">
<BookmarkListItem :id="geneInfoStore.hgncId ?? ''" :type="'gene'" />

Expand Down
5 changes: 4 additions & 1 deletion frontend/src/views/SeqvarDetailsView/SeqvarDetailsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ const SECTIONS: { [key: string]: Section[] } = {
<v-container fluid>
<v-row>
<v-col cols="2">
<div v-if="seqvarInfoStore.storeState == StoreState.Active">
<div
v-if="seqvarInfoStore.storeState == StoreState.Active"
style="position: sticky; top: 20px"
>
<v-list v-model:opened="openedSection" density="compact" rounded="lg">
<BookmarkListItem :id="idForBookmark" type="seqvar" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,10 @@ const SECTIONS: { [key: string]: Section[] } = {
<v-container fluid>
<v-row>
<v-col cols="2">
<div v-if="strucvarInfoStore.storeState == StoreState.Active">
<div
v-if="strucvarInfoStore.storeState == StoreState.Active"
style="position: sticky; top: 20px"
>
<v-list v-model:opened="openedSection" density="compact" rounded="lg">
<BookmarkListItem :id="idForBookmark" type="strucvar" />

Expand Down

0 comments on commit f25548e

Please sign in to comment.