Skip to content

Commit

Permalink
Merge pull request #5 from kecnry/tears-in-velocity-style-suggestions
Browse files Browse the repository at this point in the history
style update suggestions
  • Loading branch information
rosteen authored Dec 1, 2023
2 parents 20f1a0c + 5b6e639 commit 7419065
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion jdaviz/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ a:active {
border-color: hsla(0,0%,100%,.35) !important;
}
.no-hint .v-text-field__details {
.no-hint .v-text-field__details, .no-hint .v-messages {
display: none !important;
}
Expand Down
19 changes: 9 additions & 10 deletions jdaviz/configs/cubeviz/plugins/moment_maps/moment_maps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,37 +35,36 @@
></v-text-field>
</v-row>

<v-div v-if="n_moment > 0 && dataset_spectral_unit !== ''">
<div v-if="n_moment > 0 && dataset_spectral_unit !== ''">
<v-row>
<v-radio-group
label="Output Units"
hint="Choose whether calculated moment is in units of wavelength or velocity."
v-model="output_unit_selected"
column>
column
class="no-hint">
<v-radio
v-for="item in output_unit_items"
:key="item.label"
:label="item.label"
:value="item.label"
></v-radio>
</v-radio-group>
</v-row>
<v-row v-if="output_unit_selected === 'Velocity'" align="center">
<v-col cols="9">
</v-row>
<v-row v-if="output_unit_selected === 'Velocity'">
<v-text-field
ref="reference_wavelength"
type="number"
label="Reference Wavelength"
v-model.number="reference_wavelength"
:suffix="dataset_spectral_unit.replace('Angstrom', 'A')"
hint="Rest wavelength of the line of interest"
persistent-hint
:rules="[() => reference_wavelength !== '' || 'This field is required',
() => reference_wavelength >=0 || 'Wavelength must be positive']"
() => reference_wavelength > 0 || 'Wavelength must be positive']"
></v-text-field>
</v-col>
<v-col cols="3" justify="left">{{dataset_spectral_unit}}</v-col>
</v-row>
</v-div>
</v-row>
</div>

<plugin-add-results
:label.sync="results_label"
Expand Down

0 comments on commit 7419065

Please sign in to comment.