draply-dev 1.1.0 → 1.1.1
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 +1 -1
- package/src/draply-features.js +7 -25
package/package.json
CHANGED
package/src/draply-features.js
CHANGED
|
@@ -314,11 +314,12 @@
|
|
|
314
314
|
|
|
315
315
|
/* ── FEATURE PANEL CONTAINER ───────────────────── */
|
|
316
316
|
#__ps_features__ {
|
|
317
|
-
display:
|
|
317
|
+
display: flex;
|
|
318
318
|
flex-direction: column;
|
|
319
319
|
padding: 0 12px 12px;
|
|
320
|
+
border-top: 1px solid #1e1e3a;
|
|
321
|
+
margin-top: 10px;
|
|
320
322
|
}
|
|
321
|
-
#__ps_features__.v { display: flex; }
|
|
322
323
|
`;
|
|
323
324
|
document.head.appendChild(featureStyles);
|
|
324
325
|
|
|
@@ -394,10 +395,10 @@
|
|
|
394
395
|
`;
|
|
395
396
|
document.body.appendChild(splitView);
|
|
396
397
|
|
|
397
|
-
// Insert features panel
|
|
398
|
-
const
|
|
399
|
-
if (
|
|
400
|
-
sidebar.insertBefore(featuresDiv,
|
|
398
|
+
// Insert features panel before the footer (SAVE CHANGES button)
|
|
399
|
+
const foot = sidebar.querySelector('.ps-foot');
|
|
400
|
+
if (foot) {
|
|
401
|
+
sidebar.insertBefore(featuresDiv, foot);
|
|
401
402
|
} else {
|
|
402
403
|
sidebar.appendChild(featuresDiv);
|
|
403
404
|
}
|
|
@@ -424,25 +425,6 @@
|
|
|
424
425
|
});
|
|
425
426
|
});
|
|
426
427
|
|
|
427
|
-
// Show features panel when sidebar opens
|
|
428
|
-
const observer = new MutationObserver(() => {
|
|
429
|
-
const sidebarVisible = sidebar.classList.contains('open') || sidebar.style.display !== 'none';
|
|
430
|
-
if (sidebarVisible) {
|
|
431
|
-
featuresDiv.classList.add('v');
|
|
432
|
-
} else {
|
|
433
|
-
featuresDiv.classList.remove('v');
|
|
434
|
-
}
|
|
435
|
-
});
|
|
436
|
-
observer.observe(sidebar, { attributes: true, attributeFilter: ['class', 'style'] });
|
|
437
|
-
// Also check periodically
|
|
438
|
-
setInterval(() => {
|
|
439
|
-
const sidebarEl = document.getElementById('__ps_sidebar__');
|
|
440
|
-
if (sidebarEl) {
|
|
441
|
-
const isVis = sidebarEl.offsetWidth > 0;
|
|
442
|
-
featuresDiv.classList.toggle('v', isVis);
|
|
443
|
-
}
|
|
444
|
-
}, 500);
|
|
445
|
-
|
|
446
428
|
// ══════════════════════════════════════════
|
|
447
429
|
// VISUAL DIFF
|
|
448
430
|
// ══════════════════════════════════════════
|