Skip to content

Commit

Permalink
updating species display to use code instead of common name
Browse files Browse the repository at this point in the history
  • Loading branch information
BryonLewis committed Feb 1, 2024
1 parent 04353ae commit 535541c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions client/src/components/AnnotationList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ export default defineComponent({
<v-row
v-for="item in annotation.species"
:key="`${annotation.id}_${item.common_name}`"
class="ma-0 pa-0"
>
<v-col>
<v-col class="ma-0 pa-0">
<div class="species-name">
{{ item.common_name }}
{{ item.species_code || item.common_name }}
</div>
<div
v-if="item.family"
Expand Down Expand Up @@ -123,10 +124,10 @@ export default defineComponent({
}
.species-name {
font-weight: bold;
font-size: 0.7em;
font-size: 1em;
}
.species-hierarchy {
font-size: 0.5em;
font-size: 0.75em;
}
.selected {
background-color: cyan;
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/geoJS/layers/speciesLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class SpeciesLayer {
for (let i =0; i< species.length; i += 1) {
const specie = species[i];
this.textData.push({
text: `${specie.common_name}`,
text: `${specie.species_code || specie.common_name}`,
x: xmin + (xmax-xmin) /2.0,
y: ymax ,
offsetX:0,
Expand Down

0 comments on commit 535541c

Please sign in to comment.