pinokiod 3.73.0 → 3.75.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.73.0",
3
+ "version": "3.75.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -470,11 +470,52 @@ document.addEventListener("DOMContentLoaded", () => {
470
470
  });
471
471
 
472
472
  function openDropdown() {
473
+ const isMinimized = document.body.classList.contains('minimized');
474
+
475
+ if (isMinimized) {
476
+ // Create a portal container for centered positioning
477
+ let portal = document.getElementById('dropdown-portal');
478
+ if (!portal) {
479
+ portal = document.createElement('div');
480
+ portal.id = 'dropdown-portal';
481
+ portal.style.cssText = `
482
+ position: fixed;
483
+ top: 0;
484
+ left: 0;
485
+ width: 100%;
486
+ height: 100%;
487
+ display: flex;
488
+ justify-content: center;
489
+ align-items: center;
490
+ z-index: 1000000000;
491
+ pointer-events: none;
492
+ `;
493
+ document.body.appendChild(portal);
494
+ }
495
+
496
+ // Move dropdown to portal and make it visible
497
+ portal.appendChild(dropdownContent);
498
+ dropdownContent.style.position = 'static';
499
+ dropdownContent.style.pointerEvents = 'auto';
500
+ }
501
+
473
502
  dropdownContent.classList.add('show');
474
503
  dropdown.classList.add('active');
475
504
  }
476
505
 
477
506
  function closeDropdown() {
507
+ const isMinimized = document.body.classList.contains('minimized');
508
+
509
+ if (isMinimized) {
510
+ // Move dropdown back to original container
511
+ const portal = document.getElementById('dropdown-portal');
512
+ if (portal && dropdownContent.parentElement === portal) {
513
+ dropdown.appendChild(dropdownContent);
514
+ dropdownContent.style.position = '';
515
+ dropdownContent.style.pointerEvents = '';
516
+ }
517
+ }
518
+
478
519
  dropdownContent.classList.remove('show');
479
520
  dropdown.classList.remove('active');
480
521
  }
@@ -2468,3 +2468,7 @@ body.minimized[data-agent='electron'] header {
2468
2468
  body[data-agent='electron'] {
2469
2469
  padding-top: 26px;
2470
2470
  }
2471
+ #dropdown-portal .dropdown-content {
2472
+ border-radius: 10px;
2473
+ background: none;
2474
+ }
@@ -2,6 +2,9 @@
2
2
  position: relative;
3
3
  width: 100%;
4
4
  }
5
+ .url-modal-overlay .url-dropdown {
6
+ max-height: 50%;
7
+ }
5
8
  .url-dropdown {
6
9
  position: absolute;
7
10
  top: 100%;
@@ -12,7 +15,7 @@
12
15
  border-top: none;
13
16
  border-radius: 0 0 5px 5px;
14
17
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
15
- max-height: 50%;
18
+ max-height: 300px;
16
19
  overflow-y: auto;
17
20
  z-index: 1000;
18
21
  display: none;