@@ -439,19 +425,39 @@ onUnmounted(() => {
}
.is-fullscreen {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ z-index: 2001;
background: var(--td-bg-color-container);
padding: 0;
overflow-y: auto;
- z-index: 1000;
- .preview-container {
- max-height: 100vh;
+ .preview-toolbar {
+ position: fixed;
+ top: 12px;
+ right: 32px;
+ z-index: 2002;
}
- .preview-pdf, .preview-pptx {
+ .preview-pdf {
height: 100vh;
}
+ .preview-pptx {
+ height: auto;
+ min-height: 100vh;
+ overflow: visible;
+ border: none;
+
+ :deep(.pptx-preview-wrapper) {
+ height: auto !important;
+ overflow-y: visible !important;
+ }
+ }
+
.preview-docx {
height: 100vh;
display: flex;
@@ -462,6 +468,22 @@ onUnmounted(() => {
flex: 1;
}
}
+
+ .preview-image {
+ min-height: 100vh;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ .image-wrapper img {
+ max-height: calc(100vh - 80px);
+ }
+ }
+
+ .preview-excel .excel-container,
+ .preview-markdown,
+ .preview-text .code-preview {
+ max-height: 100vh;
+ }
}
.preview-toolbar {
@@ -563,12 +585,17 @@ onUnmounted(() => {
// ── PPTX ──
.preview-pptx {
- height: @preview-max-h;
+ max-height: @preview-max-h;
min-height: 500px;
border: 1px solid @border-color;
border-radius: @border-radius;
- overflow: hidden;
+ overflow: auto;
background: @bg-subtle;
+
+ :deep(.pptx-preview-wrapper) {
+ height: auto !important;
+ overflow-y: visible !important;
+ }
}
// ── Excel ──
@@ -702,12 +729,12 @@ onUnmounted(() => {
:deep(.vue-office-pptx) {
width: 100%;
- height: 100%;
+ min-height: 100%;
}
:deep(.vue-office-pptx-main) {
width: 100%;
- height: 100%;
+ min-height: 100%;
}
:deep(.excel-sheet) {