(labelText)
| 6553 | } |
| 6554 | |
| 6555 | function makeInlineFolderDragImage(labelText) { |
| 6556 | const isDark = document.body.classList.contains('dark-mode'); |
| 6557 | |
| 6558 | const textColor = isDark |
| 6559 | ? '#f1f3f4' |
| 6560 | : 'var(--filr-text, #111827)'; |
| 6561 | |
| 6562 | const bgColor = isDark |
| 6563 | ? 'rgba(32,33,36,0.96)' |
| 6564 | : 'var(--filr-bg-elevated, #ffffff)'; |
| 6565 | |
| 6566 | const borderColor = isDark |
| 6567 | ? 'rgba(255,255,255,0.14)' |
| 6568 | : 'rgba(15,23,42,0.12)'; |
| 6569 | |
| 6570 | const wrap = document.createElement('div'); |
| 6571 | Object.assign(wrap.style, { |
| 6572 | position: 'fixed', |
| 6573 | top: '-9999px', |
| 6574 | left: '-9999px', |
| 6575 | zIndex: '99999', |
| 6576 | |
| 6577 | display: 'inline-flex', |
| 6578 | alignItems: 'center', |
| 6579 | gap: '8px', |
| 6580 | |
| 6581 | padding: '7px 16px', |
| 6582 | minHeight: '32px', |
| 6583 | maxWidth: '420px', |
| 6584 | whiteSpace: 'nowrap', |
| 6585 | |
| 6586 | borderRadius: '999px', |
| 6587 | overflow: 'hidden', |
| 6588 | backgroundClip: 'padding-box', |
| 6589 | |
| 6590 | background: bgColor, |
| 6591 | color: textColor, |
| 6592 | border: `1px solid ${borderColor}`, |
| 6593 | boxShadow: '0 4px 18px rgba(0,0,0,0.18)', |
| 6594 | |
| 6595 | fontSize: '14px', |
| 6596 | lineHeight: '1.4', |
| 6597 | fontWeight: '500', |
| 6598 | |
| 6599 | pointerEvents: 'none' |
| 6600 | }); |
| 6601 | |
| 6602 | const icon = document.createElement('span'); |
| 6603 | icon.className = 'material-icons'; |
| 6604 | icon.textContent = 'folder'; |
| 6605 | Object.assign(icon.style, { |
| 6606 | fontSize: '20px', |
| 6607 | lineHeight: '1', |
| 6608 | flexShrink: '0', |
| 6609 | color: textColor |
| 6610 | }); |
| 6611 | |
| 6612 | const label = document.createElement('span'); |
no outgoing calls
no test coverage detected