diff --git a/components/IconButton.vue b/components/IconButton.vue
index f2085b1..2572744 100644
--- a/components/IconButton.vue
+++ b/components/IconButton.vue
@@ -3,24 +3,19 @@
-
+
-
-
+
+
+
-
-
-
-
-
-
-
+
+
@@ -87,6 +82,11 @@
return props.link && props.link.startsWith('/') && !props.link.endsWith('.pdf')
})
+ const isMobile = () => {
+ if (typeof window === 'undefined') return false
+ return window.innerWidth < 768
+ }
+
const openDocument = () => {
if (props.link?.endsWith('.pdf')) {
modalStore.setModalProps('pdf', 'aspect-[1/1.414]', true, '', '', '', props.link)
diff --git a/pages/works/[slug].vue b/pages/works/[slug].vue
index 54fd8a8..a4874c8 100644
--- a/pages/works/[slug].vue
+++ b/pages/works/[slug].vue
@@ -8,11 +8,11 @@
@@ -27,7 +27,7 @@
-
@@ -82,6 +82,11 @@ const itemCount = computed(() => {
return count
})
+const isMobile = () => {
+ if (typeof window === 'undefined') return false
+ return window.innerWidth < 768
+}
+
onMounted(() => {
if (work.value?.soundcloud_trackid) {
audioPlayerStore.setSoundCloudTrackID(work.value.soundcloud_trackid)