diff --git a/packages/nc-gui/components/cell/attachment/Preview/Pdf.vue b/packages/nc-gui/components/cell/attachment/Preview/Pdf.vue
index 5b4a36386f..5b9baac32f 100644
--- a/packages/nc-gui/components/cell/attachment/Preview/Pdf.vue
+++ b/packages/nc-gui/components/cell/attachment/Preview/Pdf.vue
@@ -13,12 +13,10 @@ const openMethod = ref<'browser' | 'google' | undefined>()
-
Opening your file in external service exposes your data
-
-
+
-
+
Open in browser
diff --git a/packages/nc-gui/components/cell/attachment/Preview/Video.vue b/packages/nc-gui/components/cell/attachment/Preview/Video.vue
index a7a7b831a5..adbe9428c3 100644
--- a/packages/nc-gui/components/cell/attachment/Preview/Video.vue
+++ b/packages/nc-gui/components/cell/attachment/Preview/Video.vue
@@ -57,7 +57,6 @@ interface Props {
const props = withDefaults(defineProps(), {
preload: 'metadata',
- aspectRatio: '16:9',
controls: true,
audioOnlyMode: false,
audioPosterMode: false,
@@ -66,18 +65,13 @@ const props = withDefaults(defineProps(), {
enableDocumentPictireInPicture: false,
enableSmoothSeeking: true,
fluid: true,
- fullScreen: {
- options: {
- navigationUI: 'hide',
- id: undefined,
- },
- },
language: 'en',
- liveui: false,
+ liveui: true,
playsinline: true,
preferFullWindow: false,
- responsive: false,
+ responsive: true,
restoreEl: false,
+ class: '',
})
const emit = defineEmits()
@@ -104,14 +98,13 @@ onBeforeUnmount(() => {
-
-
-
+ class="video-js h-auto w-full"
+ >
diff --git a/packages/nc-gui/utils/fileUtils.ts b/packages/nc-gui/utils/fileUtils.ts
index 94eec1e448..e1611e71f9 100644
--- a/packages/nc-gui/utils/fileUtils.ts
+++ b/packages/nc-gui/utils/fileUtils.ts
@@ -19,6 +19,7 @@ const videoExt = [
'webm',
'mpg',
'mp2',
+ 'mp3',
'mpeg',
'ogg',
'mp4',
@@ -33,7 +34,6 @@ const videoExt = [
'3g2',
'vob',
'ts',
- 'ts',
]
const officeExt = [
@@ -65,6 +65,7 @@ const officeExt = [
'xps',
'zip',
'rar',
+ 'csv',
]
const isVideo = (name: string, mimetype?: string) => {
diff --git a/packages/nc-gui/utils/iconUtils.ts b/packages/nc-gui/utils/iconUtils.ts
index 0141fc302c..d94b2d8630 100644
--- a/packages/nc-gui/utils/iconUtils.ts
+++ b/packages/nc-gui/utils/iconUtils.ts
@@ -207,6 +207,7 @@ import NcDrag from '~icons/nc-icons/drag'
import NcRefresh from '~icons/nc-icons/refresh'
import NcPlay from '~icons/nc-icons/play'
import GoogleDocs from '~icons/nc-icons/google-docs'
+import NcGlobe from '~icons/nc-icons/globe'
// keep it for reference
// todo: remove it after all icons are migrated
@@ -644,6 +645,7 @@ export const iconMap = {
play: NcPlay,
googleDocs: GoogleDocs,
pdfFile: MdiPdf,
+ globe: NcGlobe,
}
export const getMdiIcon = (type: string): any => {