--- before/queue/index.html +++ after/queue/index.html @@ -48,6 +48,42 @@ .detail-nav{min-height:56px} } + +/* Context wraps; the owner action stays beside the information being reviewed. */ +.metadata{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 8px} +.identifier{letter-spacing:.02em;font-variant-numeric:tabular-nums} +.metadata .service,.detail-meta .service{font-weight:520} +.metadata .service:before{content:"/";margin-right:8px;color:var(--muted)} +.record[aria-pressed=true] .metadata .service:before{color:#d0dbeb} +.detail{flex-direction:column;overflow:hidden} +.detail-nav{flex:none;position:relative;align-items:center} +.back{flex:none} +.navigator{flex:1;justify-content:flex-end} +.position{flex:1;max-width:none;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-align:right} +.position span{overflow:visible;text-overflow:clip;white-space:normal} +.nav-button{flex:none;width:44px;min-width:44px;min-height:44px} +.detail-content{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;width:100%;overflow:hidden;margin:0 auto} +.detail-reading{min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding-bottom:10px} +.detail form{flex:none} +.continuation{max-width:540px;padding:32px} +.continuation .continuation-label{font-size:.8rem;margin-bottom:14px} +.continuation h2{font-size:1.7rem;line-height:1.2;margin:10px 0 12px;letter-spacing:-.5px} +.continuation .metadata{font-size:.85rem} +.continuation .note{font-size:1rem} +.continuation .primary{margin-top:22px} +@media(min-width:851px){.detail{display:flex}} +@media(max-width:850px){ + body.detail-open .detail{display:flex} + .detail-nav{padding:5px 12px;gap:4px} + .position{margin-right:3px;max-width:none} + .detail-content{padding:18px 20px 20px} + .detail h2{font-size:1.85rem;line-height:1.2;margin:15px 0} + .detail form{margin-top:18px;padding-top:16px} +} + + +.assignment{flex-wrap:wrap}.assignment label{flex:1 1 8rem}.assignment .primary{max-width:100%;white-space:normal} +@media(max-width:360px){.back{width:44px;min-width:44px;justify-content:center}.back-label{display:none}.assignment .primary{flex:1 1 auto}} @@ -122,9 +158,9 @@ $('#status-filter').value=filter; } function renderList(){ - const rows=visible(),showPreview=filter==='blocked'||Boolean(query.trim()),hadFocus=document.activeElement?.classList.contains('record'),focused=document.activeElement?.dataset.id; + const rows=visible(),showPreview=x=>x.status==='blocked'||Boolean(query.trim()),hadFocus=document.activeElement?.classList.contains('record'),focused=document.activeElement?.dataset.id; if(queueRendered&&$('#queue').getClientRects().length)queueScroll=$('#queue').scrollTop; - $('#queue').innerHTML=rows.length?rows.map(x=>'
  • ').join(''): + $('#queue').innerHTML=rows.length?rows.map(x=>'
  • ').join(''): '
  • '+(query?'No matching releases':filter==='archived'?'No archived releases':'No '+labels[filter].toLowerCase()+' releases')+'

    '+(query?'Try a different search or return to all active releases.':filter==='archived'?'Archived releases will appear here.':'Choose another status to keep reviewing.')+'

  • '; $('#queue').scrollTop=queueScroll;queueRendered=true;$('#count').textContent=rows.length;renderScopes(); if(hadFocus){const row=[...document.querySelectorAll('.record')].find(x=>x.dataset.id===focused);row?.focus({preventScroll:true})} @@ -140,9 +176,15 @@ pos.title=query?'Search: '+query:labels[filter];$('#previous').disabled=!n.prev;$('#next').disabled=!n.next; } function renderDetail(message){ - const x=current();if(!x){$('#detail').innerHTML='
    Select a release

    Its details and owner will appear here.

    ';return} + const x=current();if(!x){ + const archivedIndex=items.findIndex(item=>item.id===undoRecord?.id); + const next=undoRecord?items.slice(archivedIndex+1).concat(items.slice(0,archivedIndex+1)).find(item=>item.status!=='archived'):null; + $('#detail').innerHTML=next?'

    Next active release

    '+escapeHTML(next.id)+''+escapeHTML(next.service)+'

    '+escapeHTML(next.title)+'

    '+escapeHTML(next.note)+'

    ':'
    Select a release

    Its details and owner will appear here.

    '; + if(next)$('#next-record').onclick=()=>openRecord(next.id); + return; + } const changed=dirty(x); - $('#detail').innerHTML='
    '+cap(x.status)+''+escapeHTML(x.id)+''+escapeHTML(x.service)+'

    '+escapeHTML(x.title)+'

    '+escapeHTML(x.note)+'

    '+escapeHTML(message||(changed?'Unsaved change · Currently '+x.owner:'Saved locally'))+'

    '; + $('#detail').innerHTML='
    '+cap(x.status)+''+escapeHTML(x.id)+''+escapeHTML(x.service)+'

    '+escapeHTML(x.title)+'

    '+escapeHTML(x.note)+'

    '+escapeHTML(message||(changed?'Unsaved change · Currently '+x.owner:'Saved locally'))+'

    '; renderNav();$('#back').onclick=back;$('#previous').onclick=()=>move(-1);$('#next').onclick=()=>move(1); $('#owner').onchange=()=>{ const record=current(),value=$('#owner').value; --- before/margin/v08.css +++ after/margin/v08.css @@ -118,3 +118,56 @@ @media(max-width:760px){.hero-book{width:86px;left:calc(50% - 43px)}.shelf-book{width:73px}} @media(max-width:350px){.hero-book{width:80px;left:calc(50% - 40px)}.shelf-book{width:67px}} + + +/* Keep the existing navigation and reading action usable as text grows. */ +.site-header{height:auto;min-height:90px;padding-block:10px;flex-wrap:wrap} +.site-header nav{min-width:0;max-width:100%;flex-wrap:wrap} +.nav-link{white-space:normal;min-width:0} +.book-title,.book-title button{overflow-wrap:anywhere} +dialog{max-width:calc(100vw - 24px);overflow:hidden} +dialog[open]{display:flex;flex-direction:column} +.detail-topline,.detail-actions{flex:none} +.detail-topline{position:relative} +.detail-content{min-height:0;overflow:auto;overscroll-behavior:contain;flex:0 1 auto} +.detail-actions{position:relative} +body.list-view .catalogue{width:min(760px,calc(100% - 96px));margin-inline:auto;min-height:0} +body.list-view .book-grid{grid-template-columns:minmax(0,1fr)} +body.list-view .book-card{padding-block:22px} +body.list-view .book-title{font-size:30px} +body.list-view .book-summary{max-width:44ch} +@media(max-width:760px){ + .site-header{min-height:72px;padding-block:8px;gap:8px 16px} + .site-header nav{gap:4px 16px} + .hero{padding-bottom:8px;gap:6px} + .hero h1{font-size:32px} + .catalogue{padding-top:12px} + body.list-view .catalogue{width:calc(100% - 40px);margin-top:22px} + body.list-view .book-title{font-size:25px} + .detail-topline{gap:8px;padding-inline:16px} + .close-dialog{gap:8px;min-width:44px;min-height:44px;flex:0 1 auto;text-align:left} + .close-dialog>span:first-child{flex:none} + .detail-review{gap:2px;flex:none} + .detail-review button{min-width:44px;width:44px;min-height:44px;flex:none} + .detail-review>span{min-width:0;white-space:nowrap} + .detail-content{display:block;padding:18px} + .detail-cover{float:left;width:88px;margin:0 16px 12px 0;background:transparent} + .detail-cover img{width:88px;max-width:100%} + .detail-copy{display:block;padding:0} + .detail-copy>.eyebrow{margin-bottom:8px} + .detail-copy h2{font-size:28px;line-height:1.08;letter-spacing:-.65px} + .detail-author{margin:10px 0 0} + .detail-description{clear:both;margin:20px 0 23px} + .detail-actions{padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px))} +} +@media(max-width:390px){body.list-view .catalogue{width:calc(100% - 32px)}} +@media(max-width:350px){ + .site-header{min-height:64px;gap:6px 10px} + .site-header nav{gap:4px 10px} + .hero h1{font-size:30px} + .detail-topline{padding-inline:12px} + .detail-content{padding:16px} + .detail-cover{width:78px;margin-right:14px} + .detail-cover img{width:78px} + .detail-copy h2{font-size:26px} +} --- before/afterimage/v08.css +++ after/afterimage/v08.css @@ -122,3 +122,29 @@ .programme-filtered .film-card:first-child .film-art{width:78px;height:134px} .programme-filtered .film-card:first-child h3{font-size:22px} } + + +/* The film and its decision share the sheet; supporting copy yields on a phone. */ +dialog{max-width:calc(100vw - 24px);overflow:hidden} +dialog[open]{display:flex;flex-direction:column} +#detail-content{min-height:0;overflow:auto;overscroll-behavior:contain;flex:0 1 auto} +.detail-footer{position:relative;flex:none} +.detail-art .film-index{max-width:calc(100% - 92px)} +@media(min-width:721px){ + #plan-view{max-width:960px;margin-inline:auto} + .plan-heading h1{font-size:64px} + .plan-row{grid-template-columns:92px 136px minmax(0,1fr) auto;gap:24px;padding-block:20px} + .plan-row img{width:136px} + .plan-time{font-size:18px;line-height:1.3;font-weight:550} + .plan-time small{font-weight:400} + .plan-film h2{font-size:30px;line-height:1.12;letter-spacing:-.9px} + .plan-summary strong{font-weight:600} +} +@media(max-width:720px){ + .festival-intro{padding-block:6px 8px} + .festival-intro h1{margin-block:8px} + .intro-bottom{gap:12px} + .detail-actions{padding:12px 18px;gap:0} + .detail-actions>p{display:none} + .detail-footer .save-button{width:100%;justify-content:center;white-space:normal} +}