Skip to content

Commit

Permalink
fix(treeview): add extra styling for 4.12 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Severin Hauser committed Mar 15, 2023
1 parent e746f67 commit bbbe1bd
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
35 changes: 34 additions & 1 deletion client/css/TreeView.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}

.treeview-item:last-child {
margin-bottome: 0;
margin-bottom: 0;
}

.treeview-item-flow {
Expand Down Expand Up @@ -336,3 +336,36 @@
.treeview-item-reorder .ui-droppable.state-active svg path {
fill: #008A00;
}

/**
* Dialog
*/
.pagesections-dialog {
z-index: 1005;
}

.pagesections-dialog button.ui-dialog-titlebar-close {
position: absolute;
top: -5px;
right: -13px;
width: 30px;
height: 30px;
z-index: 100000;
background: transparent;
border: none;
}
.pagesections-dialog button.ui-dialog-titlebar-close {
border: none;
}

.pagesections-dialog button.ui-dialog-titlebar-close > .ui-icon-closethick {
margin: 1px;
top: 0;
left: 0;
background-image: url(../img/sprite-sprites-32x32.png);
}
.pagesections-dialog
button.ui-dialog-titlebar-close
> .ui-icon-closethick:hover {
background-image: url(../img/sprite-sprites-32x32.png);
}
Binary file added client/img/sprite-sprites-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions client/javascript/TreeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@
var dialog = $('<div></div>')
.appendTo('body')
.dialog({
dialogClass: 'pagesections-dialog',
modal: true,
resizable: false,
width: 500,
Expand Down Expand Up @@ -367,6 +368,7 @@
var dialog = $('<div></div>')
.appendTo('body')
.dialog({
dialogClass: 'pagesections-dialog',
modal: false,
resizable: false,
width: $(window).width() * 0.9,
Expand Down

0 comments on commit bbbe1bd

Please sign in to comment.