fix(reader): improve header layout and responsiveness in the reader (#1415)
This commit is contained in:
@@ -103,20 +103,28 @@ $transition-fast: 150ms ease;
|
|||||||
transform: translateY(-100%);
|
transform: translateY(-100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-left,
|
.header-left {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 2px;
|
||||||
|
z-index: 1;
|
||||||
|
flex: 1 1 0%;
|
||||||
|
min-width: max-content;
|
||||||
|
}
|
||||||
|
|
||||||
.header-right {
|
.header-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
flex-shrink: 0;
|
flex: 1 1 0%;
|
||||||
|
justify-content: flex-end;
|
||||||
|
min-width: max-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
.book-title {
|
.book-title {
|
||||||
position: absolute;
|
flex: 0 1 auto;
|
||||||
left: 50%;
|
min-width: 0;
|
||||||
transform: translateX(-50%);
|
|
||||||
max-width: 40%;
|
|
||||||
padding: 0 12px;
|
padding: 0 12px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|||||||
Reference in New Issue
Block a user