diff --git a/static/src/components/chat/ShowFileCard.vue b/static/src/components/chat/ShowFileCard.vue index 7e87472..f55aa15 100644 --- a/static/src/components/chat/ShowFileCard.vue +++ b/static/src/components/chat/ShowFileCard.vue @@ -61,9 +61,10 @@ @@ -110,6 +111,11 @@ const canPreview = computed(() => { const canCopy = computed(() => ['text', 'code', 'json', 'csv', 'markdown'].includes(fileType.value)); +const isAndroidApp = computed(() => { + return typeof (window as any).AndroidDownloadBridge !== 'undefined' || + typeof (window as any).AndroidThemeBridge !== 'undefined'; +}); + const metaText = computed(() => { if (!rawContent.value) return ''; const sizeKB = (new Blob([rawContent.value]).size / 1024).toFixed(1); @@ -465,4 +471,11 @@ onMounted(() => { padding: 12px; } +.sfc-image--android { + cursor: default; + pointer-events: none; + -webkit-user-select: none; + user-select: none; +} +