(e)
| 504 | wrap.style.cssText = mobile |
| 505 | ? 'position:fixed;inset:0;z-index:' + this._subZ + ';background:rgba(0,0,0,.35);pointer-events:auto;display:flex;align-items:flex-end;justify-content:center;' |
| 506 | : 'position:fixed;inset:0;z-index:' + this._subZ + ';background:transparent;pointer-events:none;display:flex;align-items:center;justify-content:center;padding:16px;'; |
| 507 | |
| 508 | const dia = document.createElement('div'); |
| 509 | dia.className = 'hb-sub-dialog'; |
| 510 | dia.setAttribute('data-hb-modal', modal); |
| 511 | dia.style.pointerEvents = 'auto'; |
| 512 | const subKind = mobile ? modal : (modal === 'history' || modal === 'time' || modal === 'users' ? modal : 'time'); |
| 513 | dia.classList.add('hb-sub--' + subKind); |
| 514 | |
| 515 | const dragCorner = document.createElement('div'); |
| 516 | dragCorner.title = mobile ? '拖动关闭' : '左上角区域拖动窗口'; |
| 517 | // 移动端热区撑满整行标题栏,方便滑动关闭 |
| 518 | const dragW = mobile ? '100%' : DRAG_CORNER_PX + 'px'; |
| 519 | const dragH = mobile ? '44px' : DRAG_CORNER_PX + 'px'; |
| 520 | Object.assign(dragCorner.style, { |
| 521 | position: 'absolute', left: '0', top: '0', |
| 522 | width: dragW, height: dragH, |
| 523 | cursor: 'move', zIndex: '11', background: 'transparent', |
| 524 | }); |
| 525 | |
| 526 | const head = document.createElement('div'); |
nothing calls this directly
no outgoing calls
no test coverage detected