Skip to content

Commit 6ef73c0

Browse files
Reif TauatiReif Tauati
authored andcommitted
[reader] shrink scripture browse volume tiles
Made-with: Cursor
1 parent 4b5851f commit 6ef73c0

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

library/chapters/title_page.html

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
#title-nav-back { flex-shrink: 0; margin-top: 1px; padding: 6px 10px; font-size: .88rem; font-weight: 600; color: #9C7A4D; background: #fcfaf6; border: 1px solid rgba(156,122,77,0.28); border-radius: 10px; cursor: pointer; }
3434
#title-nav-back:hover { background: rgba(156,122,77,0.08); border-color: rgba(156,122,77,0.45); }
3535
#title-nav-back[hidden] { display: none !important; }
36-
.title-nav-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
36+
/* Browse grid: dense tiles on wide screens so cover art is not half-viewport wide */
37+
.title-nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
3738
.title-nav-grid.chapter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
3839
.title-nav-tile { border: 1px solid rgba(156,122,77,0.14); border-radius: 12px; background: rgba(255,255,255,0.82); padding: 12px 10px; min-height: 78px; cursor: pointer; transition: transform .12s, border-color .12s, background .12s, box-shadow .12s; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; font: inherit; text-align: left; color: inherit; }
3940
.title-nav-tile:hover { transform: translateY(-1px); border-color: rgba(156,122,77,0.34); background: rgba(156,122,77,0.08); box-shadow: 0 8px 18px rgba(0,0,0,0.04); }
@@ -50,14 +51,23 @@
5051
.title-nav-tile.chapter-tile { min-height: 0; aspect-ratio: 1 / 1; padding: 0; align-items: center; justify-content: center; text-align: center; }
5152
.title-nav-tile.chapter-tile .title-nav-tile-title { font-size: 14px; }
5253
.title-nav-tile.wide { grid-column: 1 / -1; }
53-
.title-nav-tile.title-nav-tile--cover { padding: 0; min-height: 0; aspect-ratio: 177 / 284; border-radius: 10px; overflow: hidden; align-items: stretch; }
54+
/* Cover tiles: fixed max height so 2-column layout does not create skyscraper cards */
55+
.title-nav-tile.title-nav-tile--cover {
56+
padding: 0;
57+
min-height: 0;
58+
height: clamp(120px, 26vh, 220px);
59+
max-height: 220px;
60+
border-radius: 10px;
61+
overflow: hidden;
62+
align-items: stretch;
63+
}
5464
.title-nav-tile.title-nav-tile--cover:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.18); }
5565
.title-nav-tile-cover-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
5666
.title-nav-tile.title-nav-tile--cover.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #9C7A4D; }
5767

5868
@media (max-width: 760px) {
5969
.title-shell { padding: 0 14px 36px; }
60-
.title-nav-grid { grid-template-columns: 1fr; }
70+
.title-nav-grid:not(.chapter-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
6171
.title-nav-grid.chapter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
6272
}
6373
</style>

0 commit comments

Comments
 (0)