Skip to content

Commit

Permalink
fix: enabled height and width props in spectral viewer component
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Jan 4, 2024
1 parent e051ad5 commit d348640
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions resources/js/Shared/SpectraViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
frameborder="0"
allowfullscreen
class="rounded-md border"
style="width: 100%; height: 75vh; max-height: 600px"
:style="'width: ' + width + '%; height: ' + height + 'vh;'"
:src="nmriumURL"
@load="loadSpectra()"
></iframe>
Expand Down Expand Up @@ -292,9 +292,26 @@
<script>
export default {
props: {
dataset: Object,
project: Object,
study: Object,
dataset: {
type: Object,
default: null,
},
project: {
type: Object,
default: null,
},
study: {
type: Object,
default: null,
},
height: {
type: Number,
default: 100,
},
width: {
type: Number,
default: 100,
},
},
data() {
return {
Expand Down

0 comments on commit d348640

Please sign in to comment.