diff --git a/packages/client/src/components/MkModPlayer.vue b/packages/client/src/components/MkModPlayer.vue index cdaa5f7040..21eecbdf6d 100644 --- a/packages/client/src/components/MkModPlayer.vue +++ b/packages/client/src/components/MkModPlayer.vue @@ -140,7 +140,7 @@ const patternShow = ref(false); const modPattern = ref(); const progress = ref(); const position = ref(0); -const patData = shallowRef([] as ModRow[][]); +const patData = shallowRef([]); const currentPattern = ref(0); const nbChannels = ref(0); const length = ref(1); @@ -159,7 +159,7 @@ function load() { error.value = false; fetching.value = false; }) - .catch((e: any) => { + .catch((e: unknown) => { console.error(e); error.value = true; fetching.value = false; @@ -293,12 +293,13 @@ function isRowActive(i: number) { } return true; } + return false; } function indexText(i: number) { let rowText = i.toString(16); if (rowText.length === 1) { - rowText = "0" + rowText; + rowText = `0${rowText}`; } return rowText; } diff --git a/packages/client/src/components/MkModalWindow.vue b/packages/client/src/components/MkModalWindow.vue index c9d126ee90..6471bf1722 100644 --- a/packages/client/src/components/MkModalWindow.vue +++ b/packages/client/src/components/MkModalWindow.vue @@ -15,7 +15,7 @@ height: scroll ? height ? `${props.height}px` - : null + : undefined : height ? `min(${props.height}px, 100%)` : '100%', @@ -65,7 +65,7 @@