+
{{
artist
}}
@@ -17,5 +24,7 @@ import { putCommas } from "@/utils";
const props = defineProps<{
artists: string[] | null;
albumartist: string | undefined;
+ small?: boolean;
+ smaller?: boolean;
}>();
diff --git a/src/components/shared/TrackItem.vue b/src/components/shared/TrackItem.vue
index b04e0b5f..a31e88c5 100644
--- a/src/components/shared/TrackItem.vue
+++ b/src/components/shared/TrackItem.vue
@@ -28,7 +28,11 @@
{
}
.artist {
- font-size: small;
opacity: 0.67;
width: fit-content;
}
diff --git a/src/directives/vTooltip.ts b/src/directives/vTooltip.ts
index 0fd2656a..3fcd95f6 100644
--- a/src/directives/vTooltip.ts
+++ b/src/directives/vTooltip.ts
@@ -46,11 +46,11 @@ function hideTooltip() {
tooltip.style.visibility = "hidden";
}
-function getFullWidth(el: HTMLElement) {
- // display el as inline-block to get the correct width
+function getElFullWidth(el: HTMLElement) {
el.style.display = "inline-block";
el.style.visibility = "hidden";
document.getElementsByTagName("body")[0].appendChild(el);
+
const width = el.offsetWidth;
el.remove();
@@ -58,7 +58,7 @@ function getFullWidth(el: HTMLElement) {
}
export default (el: HTMLElement) => {
- const fullWidth = getFullWidth(el.cloneNode(true) as HTMLElement);
+ const fullWidth = getElFullWidth(el.cloneNode(true) as HTMLElement);
if (fullWidth <= el.offsetWidth) return;
if (!tooltip) {
@@ -89,13 +89,4 @@ export default (el: HTMLElement) => {
hideTooltip();
});
});
-};
-
-// } as Directive;
-
-// beforeUnmount(el: HTMLElement) {
-// // hideTooltip();
-
-// el.removeEventListener("mouseover", () => {});
-// el.removeEventListener("mouseout", () => {});
-// },
+};
\ No newline at end of file
diff --git a/src/layouts/HeaderAndVList.vue b/src/layouts/HeaderAndVList.vue
index 1c0d630a..7fcada6b 100644
--- a/src/layouts/HeaderAndVList.vue
+++ b/src/layouts/HeaderAndVList.vue
@@ -6,7 +6,15 @@
:style="{ paddingTop: !no_header ? headerHeight - 64 + 16 + 'px' : 0 }"
@scroll="handleScroll"
>
-