Skip to content

feat(apps): enable fullscreen - #1758

Open
Loroteber wants to merge 3 commits into
OpenVK:masterfrom
Loroteber:feature/apps-enable-fullscreen-dva
Open

feat(apps): enable fullscreen#1758
Loroteber wants to merge 3 commits into
OpenVK:masterfrom
Loroteber:feature/apps-enable-fullscreen-dva

Conversation

@Loroteber

Copy link
Copy Markdown
Contributor

я там чёт намудрил с локалями, решил переделать pr
прошлый pr можно посмотреть здесь: #1757

добавляет возможность открывать приложения в полноэкранном режиме
добавляет настройку автоматического пепрехода в режим при запуске приложения, сохраняет в localstorage
диалоговые окна стоят поверх развёрнутого приложения

image image image

Comment on lines +51 to +79
<style>
html.app_fullscreen {
overflow-y: hidden !important;
}
.page_yellowheader.app_fullscreen span {
margin-right: calc(${getComputedStyle(u(".page_yellowheader").nodes[0]).paddingRight} * 2);
}
body.dimmed .dimmer {
z-index: 1023;
}
#ajax_audio_player {
z-index: 1020;
}
.page_yellowheader.app_fullscreen {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1021;
}
#appFrame.app_fullscreen {
position: fixed;
top: ${u(".page_yellowheader").nodes[0].getBoundingClientRect().height}px;
left: 0;
width: 100%;
height: calc(100% - ${u(".page_yellowheader").nodes[0].getBoundingClientRect().height}px);
z-index: 1021;
}
</style>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

мега костыльно выглядит. лучше вынести это в отдельный css файл

@Loroteber

Copy link
Copy Markdown
Contributor Author

Переписал чутчут логику, вынес в css и адаптировал под мобильный интерфейс

@Loroteber
Loroteber requested a review from veselcraft August 30, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants