fix: убрать scrollX/pageYOffset у position: fixed тултипа и поднять z-index до 99999
Build and deploy / build-deploy (push) Has been cancelled
Build and deploy / build-deploy (push) Has been cancelled
This commit is contained in:
@@ -148,10 +148,10 @@
|
|||||||
|
|
||||||
/* Тултип с деталями проверки */
|
/* Тултип с деталями проверки */
|
||||||
.seg-tip {
|
.seg-tip {
|
||||||
position: fixed; z-index: 1000; pointer-events: none;
|
position: fixed; z-index: 99999; pointer-events: none;
|
||||||
background: var(--bg2); border: 1px solid var(--border);
|
background: var(--bg2); border: 1px solid var(--border);
|
||||||
border-radius: 6px; padding: 8px 10px;
|
border-radius: 6px; padding: 8px 10px;
|
||||||
box-shadow: 0 6px 20px rgba(0,0,0,.45);
|
box-shadow: 0 6px 20px rgba(0,0,0,.6);
|
||||||
font-size: 12px; line-height: 1.45; color: var(--text);
|
font-size: 12px; line-height: 1.45; color: var(--text);
|
||||||
max-width: 380px; white-space: pre-wrap; word-break: break-word;
|
max-width: 380px; white-space: pre-wrap; word-break: break-word;
|
||||||
display: none;
|
display: none;
|
||||||
@@ -363,8 +363,8 @@ function showSegTip(el) {
|
|||||||
left = Math.max(8, Math.min(left, window.innerWidth - tr.width - 8));
|
left = Math.max(8, Math.min(left, window.innerWidth - tr.width - 8));
|
||||||
let top = r.top - tr.height - 8;
|
let top = r.top - tr.height - 8;
|
||||||
if (top < 8) top = r.bottom + 8;
|
if (top < 8) top = r.bottom + 8;
|
||||||
tip.style.left = `${left + window.pageXOffset}px`;
|
tip.style.left = `${left}px`;
|
||||||
tip.style.top = `${top + window.pageYOffset}px`;
|
tip.style.top = `${top}px`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function hideSegTip() {
|
function hideSegTip() {
|
||||||
|
|||||||
Reference in New Issue
Block a user