documents: view/edit для аптек в OnlyOffice и просмотр PDF/изображений.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-06 17:36:42 +03:00
parent 7a149dd84d
commit 2a1cb7d5c2
10 changed files with 475 additions and 16 deletions
+38
View File
@@ -636,6 +636,7 @@
display: flex;
align-items: center;
justify-content: flex-end;
gap: 0.5rem;
padding: 0.2rem 0.75rem;
margin: 0;
min-height: 1.75rem;
@@ -658,6 +659,43 @@
border-radius: 0;
background: #fff;
}
.doc-preview-title {
margin-right: auto;
font-size: 0.8125rem;
font-weight: 500;
color: var(--color-foreground);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 60%;
}
.doc-preview-host {
background: color-mix(in srgb, var(--color-muted-foreground) 8%, var(--color-background));
}
.doc-preview-frame {
display: block;
width: 100%;
height: 100%;
border: 0;
background: #fff;
}
.doc-preview-image-wrap {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
overflow: auto;
padding: 1rem;
box-sizing: border-box;
}
.doc-preview-image {
max-width: 100%;
max-height: 100%;
object-fit: contain;
box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
background: #fff;
}
#main-content:has(.oo-editor-page) {
padding: 0 !important;
overflow: hidden !important;
+38
View File
@@ -1276,6 +1276,7 @@
display: flex;
align-items: center;
justify-content: flex-end;
gap: 0.5rem;
padding: 0.2rem 0.75rem;
margin: 0;
min-height: 1.75rem;
@@ -1298,6 +1299,43 @@
border-radius: 0;
background: #fff;
}
.doc-preview-title {
margin-right: auto;
font-size: 0.8125rem;
font-weight: 500;
color: var(--color-foreground);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 60%;
}
.doc-preview-host {
background: color-mix(in srgb, var(--color-muted-foreground) 8%, var(--color-background));
}
.doc-preview-frame {
display: block;
width: 100%;
height: 100%;
border: 0;
background: #fff;
}
.doc-preview-image-wrap {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
overflow: auto;
padding: 1rem;
box-sizing: border-box;
}
.doc-preview-image {
max-width: 100%;
max-height: 100%;
object-fit: contain;
box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
background: #fff;
}
#main-content:has(.oo-editor-page) {
padding: 0 !important;
overflow: hidden !important;