mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-15 09:30:44 -06:00
Fix #1231
This commit is contained in:
@@ -600,9 +600,11 @@ const ipc_listener = async (event, handled) => {
|
||||
|
||||
// Show menubar
|
||||
let $menubar;
|
||||
if(window.menubar_style === 'window')
|
||||
if(window.menubar_style === 'window'){
|
||||
$menubar = $(el_window).find('.window-menubar')
|
||||
else{
|
||||
// add window-with-menubar class to the window
|
||||
$(el_window).addClass('window-with-menubar');
|
||||
}else{
|
||||
$menubar = $('.window-menubar-global[data-window-id="'+$(el_window).attr('data-id')+'"]');
|
||||
// hide all other menubars
|
||||
$('.window-menubar-global').hide();
|
||||
|
||||
@@ -132,6 +132,9 @@ export default {
|
||||
$(el).insertAfter('.toolbar-puter-logo');
|
||||
// add window-menubar-global
|
||||
$(el).addClass('window-menubar-global');
|
||||
// remove window-with-menubar from the window
|
||||
let win_id = $(el).attr('data-window-id');
|
||||
$('.window[data-id="'+win_id+'"]').removeClass('window-with-menubar');
|
||||
// hide
|
||||
$(el).hide();
|
||||
})
|
||||
@@ -142,6 +145,8 @@ export default {
|
||||
$(el).insertAfter('.window[data-id="'+win_id+'"] .window-head');
|
||||
// remove window-menubar-global
|
||||
$(el).removeClass('window-menubar-global');
|
||||
// add window-with-menubar to the window
|
||||
$('.window[data-id="'+win_id+'"]').addClass('window-with-menubar');
|
||||
// show
|
||||
$(el).css('display', 'flex');
|
||||
})
|
||||
|
||||
@@ -1341,7 +1341,9 @@ span.header-sort-icon img {
|
||||
.window-body-app {
|
||||
height: calc(100% - 30px);
|
||||
}
|
||||
|
||||
.window-with-menubar .window-body-app {
|
||||
height: calc(100% - 65px);
|
||||
}
|
||||
.fullpage-mode.device-phone .window-body-app {
|
||||
height: calc(100%);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user