Skip to content

Commit

Permalink
added degree symbol to angle field
Browse files Browse the repository at this point in the history
  • Loading branch information
Carolina Capetillo committed Oct 4, 2023
1 parent 7c79bcb commit f6b0cec
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/projects/CreateProjectForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -399,13 +399,15 @@
>
<b-input
v-model="exposures[n-1].angle"
:class="addSymbol(exposures[n-1].angle)"
size="is-small"
:disabled="!exposures[n-1].active"
type="number"
min="-90.0"
max="90.0"
step="5"
/>
<template v-slot:append>°</template>
</b-field>
<div />
</div>
Expand Down Expand Up @@ -1196,6 +1198,11 @@ export default {
return 'degree-input'
} else if (zoom === 'Mosaic arcmin.') return 'arcmin-input'
return '' // return an empty string if there is no match
},
addSymbol (angle) {
if (angle) {
return 'angle-input'
}
}
},
computed: {
Expand Down Expand Up @@ -1355,4 +1362,14 @@ export default {
pointer-events: none;
color: white;
}
.angle-input::after {
content: '°';
position: absolute;
top: 50%;
left: 40%;
transform: translateY(-50%);
pointer-events: none;
color: white;
}
</style>

0 comments on commit f6b0cec

Please sign in to comment.