mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-12 18:19:28 -05:00
taskbar positioning hotfix
This commit is contained in:
@@ -505,6 +505,15 @@ window.update_taskbar_position = async function(new_position) {
|
||||
window.adjust_taskbar_item_sizes();
|
||||
}, 10);
|
||||
|
||||
// adjust position if sidepanel is open
|
||||
if(window.taskbar_position === 'bottom'){
|
||||
if($('.window[data-is_panel="1"][data-is_visible="1"]').length > 0){
|
||||
$('.taskbar').css('left', `calc(50% - 200px)`);
|
||||
} else if($('.window[data-is_panel="1"][data-is_visible="0"]').length > 0){
|
||||
$('.taskbar').css('left', `calc(50%)`);
|
||||
}
|
||||
}
|
||||
|
||||
// Reinitialize all taskbar item tooltips with new position
|
||||
$('.taskbar-item').each(function() {
|
||||
const $item = $(this);
|
||||
|
||||
Reference in New Issue
Block a user