Skip to content

Commit 650f178

Browse files
committed
fix: enable continuous scroll tip
1 parent e2a8721 commit 650f178

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

epub_browser/assets/annotation.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@
556556
.continuous-scroll-tip:hover::after {
557557
content: attr(data-tip);
558558
position: absolute;
559-
top: calc(100% + 8px);
559+
bottom: calc(100% + 8px);
560560
left: 50%;
561561
transform: translateX(-50%);
562562
background: var(--text);
@@ -570,19 +570,19 @@
570570
max-width: min(320px, calc(100vw - 40px));
571571
line-height: 1.5;
572572
text-align: left;
573-
z-index: 100;
573+
z-index: 9999;
574574
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
575575
}
576576

577577
.continuous-scroll-tip:hover::before {
578578
content: '';
579579
position: absolute;
580-
top: calc(100% + 2px);
580+
bottom: calc(100% + 2px);
581581
left: 50%;
582582
transform: translateX(-50%);
583583
border: 5px solid transparent;
584-
border-bottom-color: var(--text);
585-
z-index: 100;
584+
border-top-color: var(--text);
585+
z-index: 9999;
586586
}
587587

588588
.color-add-btn {

0 commit comments

Comments
 (0)