Skip to content

Commit

Permalink
Add in CSS for width/height setting, rather than inline HTML attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
joepavitt committed Dec 6, 2024
1 parent b9a95a2 commit 0a51568
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/src/widgets/ui-audio/UIAudio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<!-- if you remove the `controls` attribute, you MUST click something on the page before initiating play -->
<audio
ref="audio"
width="100%"
height="100%"
controls
:autoplay="autoplay"
:loop="loop"
Expand Down Expand Up @@ -120,6 +118,10 @@ export default {
</script>
<style>
.nrdb-ui-audio audio {
width: 100%;
height: 100%;
}
.hidden {
display: none !important;
}
Expand Down

0 comments on commit 0a51568

Please sign in to comment.