mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Don't show dialog header when it's empty
This commit is contained in:
1 parent
2b10a94fd1
commit
95574df182
1 file changed
+4
-2
+4
-2
@@ -49,7 +49,7 @@ window.ModalSystem = (function() {
|
||||
|| (fixedSize !== false && typeof window !== 'undefined' && window.innerWidth < 900);
|
||||
|
||||
let _showCloseButton = showCloseButton;
|
||||
if (window.innerWidth < 900) {
|
||||
if (window.innerWidth < 900 && useFixedSize) {
|
||||
_showCloseButton = true;
|
||||
}
|
||||
|
||||
@@ -111,7 +111,9 @@ window.ModalSystem = (function() {
|
||||
dialogHeader.appendChild(closeButton);
|
||||
}
|
||||
|
||||
dialog.appendChild(dialogHeader);
|
||||
if (dialogHeader.childNodes.length > 0) {
|
||||
dialog.appendChild(dialogHeader);
|
||||
}
|
||||
|
||||
// Create scrollable content area
|
||||
const dialogContent = document.createElement('div');
|
||||
|
||||
Reference in new issue
Block a user