Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,10 @@ label.checkbox input:checked ~ span.check {
z-index: +1;
}

.ui-icon-caret-1-e {
left: auto !important;
}

.ui-icon-caret-1-e:after {
content: "»";
font-family: roboto, sans-serif !important;
Expand Down
2 changes: 0 additions & 2 deletions src/navigation/navigation.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
nav {
position: fixed;
width: 100%;
z-index: 3000;

#topbar {
width: 100%;
Expand Down
18 changes: 3 additions & 15 deletions src/windows/windows.es6
Original file line number Diff line number Diff line change
Expand Up @@ -331,27 +331,15 @@ export const createBlankWindow = function($html,options) {
dialog.on('dragstop', () => {
const top = dialog.offset().top;
const left = dialog.offset().left;
const nav_head = $('nav').height();
if(top < nav_head) {
dialog.animate({ top: nav_head }, 300, dialog.trigger.bind(dialog, 'animated'));

if (top < 0) {
dialog.animate({ top: '0px' }, 300, dialog.trigger.bind(dialog, 'animated'));
}
if (left < 0) {
dialog.animate({ left: '0px' }, 300, dialog.trigger.bind(dialog, 'animated'));
}
});

dialog.bind('dialogextendmaximize', () => {
dialog.css({ zIndex: dialog.closest('.ui-dialog').css('z-index')*1 + 3000 });
});
dialog.bind('dialogextendrestore', () => {
if (dialog.closest('.ui-dialog').css('z-index') > 3000) {
dialog.css({ zIndex: dialog.closest('.ui-dialog').css('z-index')*1 - 3000 });
dialog.draggable('option', 'containment', false);
} else {
dialog.css({ zIndex: dialog.closest('.ui-dialog').css('z-index')*1 + 1 });
}
});

if(options.destroy) { /* register for destroy event which have been patched */
blankWindow.on('dialogdestroy', options.destroy);
}
Expand Down