fix(cbx-reader): prevent touch drag on mobile and fix header title overflow (#2441)

This commit is contained in:
ACX
2026-01-23 17:48:56 -07:00
committed by GitHub
parent 18419c970f
commit 308d5bf87d
2 changed files with 9 additions and 6 deletions
@@ -8,6 +8,10 @@
background: #1a1a1a; background: #1a1a1a;
color: #ffffff; color: #ffffff;
position: relative; position: relative;
touch-action: none;
overscroll-behavior: none;
-webkit-user-select: none;
user-select: none;
&:focus { &:focus {
outline: none; outline: none;
@@ -267,6 +271,8 @@
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
align-items: flex-start; align-items: flex-start;
touch-action: pan-y;
overscroll-behavior: contain;
.infinite-scroll-wrapper { .infinite-scroll-wrapper {
display: flex; display: flex;
@@ -92,10 +92,9 @@
} }
.book-title { .book-title {
position: absolute; flex: 1;
left: 50%; min-width: 0;
transform: translateX(-50%); padding: 0 12px;
max-width: calc(100% - 240px);
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
@@ -105,7 +104,6 @@
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
min-height: 1.2em;
} }
} }
@@ -124,7 +122,6 @@
.book-title { .book-title {
font-size: 12px; font-size: 12px;
max-width: calc(100% - 160px);
} }
} }
} }