Merge pull request 'fix bug 62782' (#472) from fix/bug-62782 into release/v9.1.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/desktop-apps/pulls/472
This commit is contained in:
Oleg Korshul
2025-10-04 19:35:14 +00:00
2 changed files with 36 additions and 1 deletions

View File

@ -2642,11 +2642,12 @@ li.menu-item {
} }
.template-preview-body { .template-preview-body {
display: flex; display: flex;
.img-container { .img-container {
max-height: 80vh; max-height: 80vh;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden;
margin-right: 16px; margin-right: 16px;
flex-shrink: 0; flex-shrink: 0;
.rtl & { .rtl & {
@ -2708,4 +2709,33 @@ li.menu-item {
} }
} }
} }
@media (max-width: 780px) {
flex-direction: column;
.img-container {
max-height: 30vh;
margin-right: 0;
.rtl & {
margin-left: 0;
}
.icon {
width: 100%;
}
}
.description {
.name,
.pricing,
.descr,
.file-info {
margin-bottom: 5px;
}
.btn--landing {
margin-top: 0;
}
}
}
} }

View File

@ -80,6 +80,11 @@ dialog {
&.dlg-template-preview { &.dlg-template-preview {
overflow: hidden; overflow: hidden;
@media (max-width: 780px) {
max-width: 500px;
max-height: 90vh;
}
.title { .title {
height: 48px; height: 48px;
padding: 12px 16px; padding: 12px 16px;