mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Stories: remove the Mute button, which controlled nothing
Scene media plays muted and offers no audio control to wire it to.
This commit is contained in:
1 parent
4fa80fb18c
commit
f4b535d89e
15 files changed
+2
-53
No files matched your search
@@ -33,7 +33,6 @@ export const useStoriesStore = defineStore('stories', {
|
||||
/** The big Play button over a story that opened paused. */
|
||||
bigPlay: false,
|
||||
camera: { lat: 0, lon: 0, altKm: 0 },
|
||||
muted: true,
|
||||
expanded: false,
|
||||
/** Context panel shown over the map while expanded (desktop). */
|
||||
ctxOpen: false,
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
const props = defineProps({ story: { type: Object, required: true } });
|
||||
const emit = defineEmits(['anchor']);
|
||||
const store = useStoriesStore();
|
||||
const { playback, muted, expanded } = storeToRefs(store);
|
||||
const { playback, expanded } = storeToRefs(store);
|
||||
|
||||
const dur = computed(
|
||||
() => playback.value.durationMs || props.story.durationMs || 1,
|
||||
@@ -333,11 +333,7 @@ function onKey(e) {
|
||||
seek(tt);
|
||||
}
|
||||
|
||||
// ── Sound, expand ──
|
||||
const VOL = {
|
||||
off: '<path d="M4 9.5h3.5L12 5.5v13l-4.5-4H4z" fill="currentColor" stroke="none"/><path d="M16 9.5l5 5M21 9.5l-5 5"/>',
|
||||
on: '<path d="M4 9.5h3.5L12 5.5v13l-4.5-4H4z" fill="currentColor" stroke="none"/><path d="M15.5 9a4.5 4.5 0 0 1 0 6M18 6.5a8 8 0 0 1 0 11"/>',
|
||||
};
|
||||
// ── Expand ──
|
||||
function toggleExpand() {
|
||||
store.expanded = !store.expanded;
|
||||
store.ctxOpen = false;
|
||||
@@ -496,26 +492,6 @@ defineExpose({ goChapter });
|
||||
>
|
||||
<i></i>{{ t('LIVE') }}
|
||||
</button>
|
||||
<button
|
||||
id="tlVol"
|
||||
class="tl-vol"
|
||||
type="button"
|
||||
:aria-label="muted ? t('Unmute') : t('Mute')"
|
||||
:aria-pressed="!muted"
|
||||
@click="muted = !muted"
|
||||
>
|
||||
<svg
|
||||
id="tlVolIcon"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="1.9"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
aria-hidden="true"
|
||||
v-html="muted ? VOL.off : VOL.on"
|
||||
></svg>
|
||||
</button>
|
||||
<button
|
||||
id="stExpand"
|
||||
class="tl-vol"
|
||||
|
||||
Reference in new issue
Block a user