mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Fix issues related to formatting of multi-query picker sections with Caption titles
This commit is contained in:
1 parent
ec9daf9723
commit
6e40eb603a
2 files changed
+23
-12
No files matched your search
@@ -1653,8 +1653,9 @@
|
||||
const controlsMount = titleContainer.querySelector('.section-controls');
|
||||
const titleLink = titleContainer.querySelector('a.sectionTitle-link');
|
||||
const sectionTitle = titleContainer.querySelector('.sectionTitle');
|
||||
if (controlsMount) {
|
||||
titleContainer.insertBefore(selectButton, controlsMount);
|
||||
// controls may live under .sectionTitle-wrapper when a caption is present
|
||||
if (controlsMount?.parentNode) {
|
||||
controlsMount.parentNode.insertBefore(selectButton, controlsMount);
|
||||
} else if (titleLink?.parentNode) {
|
||||
titleLink.parentNode.insertBefore(selectButton, titleLink.nextSibling);
|
||||
} else if (sectionTitle?.parentNode) {
|
||||
|
||||
Reference in new issue
Block a user