diff options
| -rw-r--r-- | frontend/site/audio/audio.player.js | 4 | ||||
| -rw-r--r-- | frontend/site/projects/museum/views/titles.css | 6 | ||||
| -rw-r--r-- | frontend/site/projects/museum/views/titles.overlay.js | 1 |
3 files changed, 6 insertions, 5 deletions
diff --git a/frontend/site/audio/audio.player.js b/frontend/site/audio/audio.player.js index e6e8f44..d036347 100644 --- a/frontend/site/audio/audio.player.js +++ b/frontend/site/audio/audio.player.js @@ -39,8 +39,8 @@ export default class AudioPlayer { playPage(page) { const { background_audio_id, restart_audio, stop_all_sounds } = page.settings - // console.log('playPage', page) - if (stop_all_sounds) { + console.log('playPage', page) + if (stop_all_sounds && this.current_background_id !== background_audio_id) { Object.keys(this.players).forEach(id => this.stop(id)) } else if ( this.current_background_id diff --git a/frontend/site/projects/museum/views/titles.css b/frontend/site/projects/museum/views/titles.css index 547c9ba..562edd9 100644 --- a/frontend/site/projects/museum/views/titles.css +++ b/frontend/site/projects/museum/views/titles.css @@ -21,7 +21,7 @@ padding: 1rem; font-family: 'Helvetica', sans-serif; - font-size: 1.66vw; + font-size: 1.5vw; pointer-events: none; user-select: none; @@ -34,9 +34,9 @@ top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); - width: 65vw; + width: 80vw; font-family: "Druk Wide"; - font-size: 1.66vw; + font-size: 1.5vw; color: #fff; text-shadow: 0px 2px 6px rgba(0,0,0,0.5); opacity: 0; diff --git a/frontend/site/projects/museum/views/titles.overlay.js b/frontend/site/projects/museum/views/titles.overlay.js index 12b8bae..95c272d 100644 --- a/frontend/site/projects/museum/views/titles.overlay.js +++ b/frontend/site/projects/museum/views/titles.overlay.js @@ -102,6 +102,7 @@ class TitlesOverlay extends Component { showTitle() { if (!this.titleRef.current) return + this.titleRef.current.innerHTML = "" this.titleRef.current.style.color = this.state.content.color || "rgba(255, 121, 13, 1.0)" this.titleRef.current.style.opacity = 0 this.titleTimeout = setTimeout(() => { |
