+
+
+
+
+
+
+
+
+
+
+
@@ -397,6 +435,51 @@ onUnmounted(() => {
.document-preview {
min-height: 200px;
+ position: relative;
+}
+
+.is-fullscreen {
+ background: var(--td-bg-color-container);
+ padding: 0;
+ overflow-y: auto;
+ z-index: 1000;
+
+ .preview-container {
+ max-height: 100vh;
+ }
+
+ .preview-pdf, .preview-pptx {
+ height: 100vh;
+ }
+
+ .preview-docx {
+ height: 100vh;
+ display: flex;
+ flex-direction: column;
+ .docx-container {
+ max-height: 100vh;
+ height: 100%;
+ flex: 1;
+ }
+ }
+}
+
+.preview-toolbar {
+ position: absolute;
+ top: 8px;
+ right: 24px;
+ z-index: 10;
+ background: var(--td-bg-color-container);
+ border: 1px solid var(--td-component-border);
+ border-radius: var(--td-radius-default);
+ box-shadow: var(--td-shadow-1);
+ padding: 4px;
+ opacity: 0.6;
+ transition: opacity 0.2s;
+
+ &:hover {
+ opacity: 1;
+ }
}
// ── States ──
diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts
index fdb9b3131..8ce2b4c73 100755
--- a/frontend/src/i18n/locales/en-US.ts
+++ b/frontend/src/i18n/locales/en-US.ts
@@ -2981,6 +2981,8 @@ export default {
retry: 'Retry',
unsupported: 'This file type does not support online preview',
unsupportedHint: 'Please download and open with a local application',
+ fullscreen: 'Fullscreen',
+ exitFullscreen: 'Exit Fullscreen',
},
knowledgeSearch: {
title: 'Search',
diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts
index 811605e44..d1948dfa2 100755
--- a/frontend/src/i18n/locales/ko-KR.ts
+++ b/frontend/src/i18n/locales/ko-KR.ts
@@ -3049,6 +3049,8 @@ export default {
retry: '재시도',
unsupported: '이 파일 유형은 온라인 미리보기를 지원하지 않습니다',
unsupportedHint: '파일을 다운로드하여 로컬 앱으로 열어주세요',
+ fullscreen: '전체 화면',
+ exitFullscreen: '전체 화면 종료',
},
knowledgeSearch: {
title: '검색',
diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts
index 88123f047..0ac82bf86 100755
--- a/frontend/src/i18n/locales/ru-RU.ts
+++ b/frontend/src/i18n/locales/ru-RU.ts
@@ -2580,7 +2580,9 @@ export default {
loadFailed: 'Не удалось загрузить предпросмотр документа',
retry: 'Повторить',
unsupported: 'Этот тип файла не поддерживает онлайн-просмотр',
- unsupportedHint: 'Скачайте файл и откройте локально'
+ unsupportedHint: 'Скачайте файл и откройте локально',
+ fullscreen: 'Полноэкранный режим',
+ exitFullscreen: 'Выйти из полноэкранного режима',
},
knowledgeSearch: {
title: 'Поиск',
diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts
index 846d0c7e0..a084635e5 100755
--- a/frontend/src/i18n/locales/zh-CN.ts
+++ b/frontend/src/i18n/locales/zh-CN.ts
@@ -2978,6 +2978,8 @@ export default {
retry: "重试",
unsupported: "该文件类型暂不支持在线预览",
unsupportedHint: "请下载文件后使用本地应用查看",
+ fullscreen: "全屏预览",
+ exitFullscreen: "退出全屏",
},
knowledgeSearch: {
title: "搜索",