Skip to content

Commit

Permalink
fix(#400): fix undefined images result bug, adjust metamine mobile st…
Browse files Browse the repository at this point in the history
…yling
  • Loading branch information
aswallace committed Jun 1, 2023
1 parent efc7815 commit 9198262
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion app/src/assets/css/modules/_pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@
&_headline {
margin-top: 1.5rem;
text-align: center;
@include respond(tab-land) {
margin: 2rem;
}
}

&_menu {
Expand Down Expand Up @@ -342,7 +345,7 @@
margin-top: 0.5rem;
font-size: 3.5rem;
@include respond(phone) {
font-size: 1.14rem;
font-size: 2rem;
}
}

Expand Down
7 changes: 5 additions & 2 deletions app/src/components/explorer/SearchHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<md-tabs class="btn--primary">
<md-tab :md-label="'Articles (' + passTotal.getArticles + ')'" @click.prevent="setResultsTabs('getArticles')"></md-tab>
<md-tab :md-label="'Samples (' + passTotal.getSamples + ')'" @click.prevent="setResultsTabs('getSamples')"></md-tab>
<md-tab :md-label="'Images (' + passTotal.getImages + ')'" @click.prevent="setResultsTabs('getImages')"></md-tab>
<md-tab :md-label="'Images (' + imageTotal + ')'" @click.prevent="setResultsTabs('getImages')"></md-tab>
<md-tab :md-label="'Charts (' + passTotal.getCharts + ')'" @click.prevent="setResultsTabs('getCharts')"></md-tab>
<md-tab :md-label="'Properties (' + passTotal.getMaterials + ')'" @click.prevent="setResultsTabs('getMaterials')"></md-tab>
</md-tabs>
Expand All @@ -42,7 +42,10 @@ export default {
resultsTab: 'explorer/getResultsTab',
passTotal: 'explorer/results/getTotalGroupings',
getTotal: 'explorer/results/getTotal'
})
}),
imageTotal () {
return this.passTotal?.getImages ?? 0
}
},
methods: {
setResultsTabs (payload) {
Expand Down

0 comments on commit 9198262

Please sign in to comment.