forge
Explore
Log in

Don't you dare go Hollow

The CI list, run and job pages show their jobs and log again, which lost all height when the page language dropped their fit pane

Browse files at this commit

949180b7a1fc980cf6eda3feb16e42fcac87f941Ahmet Kaan GümüşParent: 4d91e94
All checks have passed
Show checks
  • fix
    • the CI list, run and job pages show their jobs and log again, which lost all height when the page language dropped their fit pane
    • a phone's CI list no longer collapses its run
    • the runs head keeps the rows' inset and the log tools share one line
    • the logo no longer runs under Explore, which sat on a fixed width the wordmark outgrew
  • feat
    • every search bar is live: results follow typing with focus and caret kept, Enter runs at once, audit log, issues, pulls and code search join in, and the repo head's search moves to the results while typing
    • a branch field waits for change, since half a name is a 404
    • sort on issues and pulls applies on change
    • scripts/audit/measure.ts reports a pane that lost its height
Show full message
🐛 fix: the CI list, run and job pages show their jobs and log again, which lost all height when the page language dropped their fit pane; a phone's CI list no longer collapses its run; the runs head keeps the rows' inset and the log tools share one line; the logo no longer runs under Explore, which sat on a fixed width the wordmark outgrew; ✨ feat: every search bar is live: results follow typing with focus and caret kept, Enter runs at once, audit log, issues, pulls and code search join in, and the repo head's search moves to the results while typing; a branch field waits for change, since half a name is a 404; sort on issues and pulls applies on change; scripts/audit/measure.ts reports a pane that lost its height
crates/forge-web/assets/nav.jsmodified+31 -0
@@ -361,6 +361,9 @@
361 // A fit pane keeps its scroll when the page stays put (a live change, a post, a filter), by its place in the page.361 // A fit pane keeps its scroll when the page stays put (a live change, a post, a filter), by its place in the page.
362 var paneTops = how === 'live' || how === 'post' || how === 'query' ? paneScrolls() : null;362 var paneTops = how === 'live' || how === 'post' || how === 'query' ? paneScrolls() : null;
363 var bars = how === 'live' ? barSegments() : null;363 var bars = how === 'live' ? barSegments() : null;
364+ var jump = liveJump && liveJump.path === dest.pathname ? liveJump.input : null;
365+ var jumped = jump ? jump.value : '';
366+ liveJump = null;
364 var steps = captureSteps();367 var steps = captureSteps();
365 adopt(doc, keepFields, dd, how === 'live' ? captureJobs() : null);368 adopt(doc, keepFields, dd, how === 'live' ? captureJobs() : null);
366 restoreSteps(steps);369 restoreSteps(steps);
@@ -375,6 +378,7 @@
375 else if (how === 'post' || how === 'query') { history.replaceState(null, '', dest.href); }378 else if (how === 'post' || how === 'query') { history.replaceState(null, '', dest.href); }
376 shown = dest.pathname + dest.search;379 shown = dest.pathname + dest.search;
377 if (how === 'nav' || how === 'pop') { focusMain(); }380 if (how === 'nav' || how === 'pop') { focusMain(); }
381+ if (jump) { landSearch(jumped); }
378 if (how !== 'live' && placeHash(dest.hash)) { return; }382 if (how !== 'live' && placeHash(dest.hash)) { return; }
379 if (how === 'live' && placeAnchor(at)) { return; }383 if (how === 'live' && placeAnchor(at)) { return; }
380 if (how === 'post' || how === 'query' || how === 'live') { window.scrollTo(x, y); }384 if (how === 'post' || how === 'query' || how === 'live') { window.scrollTo(x, y); }
@@ -1552,6 +1556,15 @@
1552 var q = new URLSearchParams(data).toString();1556 var q = new URLSearchParams(data).toString();
1553 var dest = withoutHash(url);1557 var dest = withoutHash(url);
1554 dest.search = q ? '?' + q : '';1558 dest.search = q ? '?' + q : '';
1559+ // Enter in a live field on its own results page runs the search now and leaves the reader typing.
1560+ var typing = document.activeElement;
1561+ if (typing && typing.form === form && typing.hasAttribute('data-live-search') && url.pathname === location.pathname) {
1562+ clearTimeout(searchTimer);
1563+ searchTimer = null;
1564+ if (dest.pathname + dest.search === shown) { pending.delete(form); return; }
1565+ load({ target: dest, dest: dest, init: GET_INIT, how: 'query', keep: true, post: false, form: form });
1566+ return;
1567+ }
1555 saveScroll();1568 saveScroll();
1556 load({ target: dest, dest: dest, init: GET_INIT, how: 'nav', keep: false, post: false, form: form });1569 load({ target: dest, dest: dest, init: GET_INIT, how: 'nav', keep: false, post: false, form: form });
1557 return;1570 return;
@@ -1586,7 +1599,18 @@
1586 // Search as you type: a search field marked data-live-search refetches its GET form 250 ms after1599 // Search as you type: a search field marked data-live-search refetches its GET form 250 ms after
1587 // the last keystroke and swaps the page in place, with no history entry and the field's focus and1600 // the last keystroke and swaps the page in place, with no history entry and the field's focus and
1588 // caret kept. A newer request drops an older answer. The submit button stays as the no-JS path.1601 // caret kept. A newer request drops an older answer. The submit button stays as the no-JS path.
1602+ // A field whose results are on another page (the repo head's code search) goes there once it has
1603+ // text: that page's field takes over with what was typed, so the reader never stops typing.
1589 var searchTimer = null;1604 var searchTimer = null;
1605+ var liveJump = null;
1606+ function landSearch(value) {
1607+ var el = document.querySelector('[data-live-search]');
1608+ if (!el) { return; }
1609+ el.value = value;
1610+ el.focus({ preventScroll: true });
1611+ el.setSelectionRange(value.length, value.length);
1612+ if (value !== el.defaultValue) { el.dispatchEvent(new Event('input', { bubbles: true })); }
1613+ }
1590 function liveSearch(input) {1614 function liveSearch(input) {
1591 var el = input.isConnected ? input : document.querySelector('[data-live-search]');1615 var el = input.isConnected ? input : document.querySelector('[data-live-search]');
1592 var form = el && el.form;1616 var form = el && el.form;
@@ -1596,6 +1620,13 @@
1596 var q = new URLSearchParams(new FormData(form)).toString();1620 var q = new URLSearchParams(new FormData(form)).toString();
1597 dest.search = q ? '?' + q : '';1621 dest.search = q ? '?' + q : '';
1598 if (dest.pathname + dest.search === shown) { return; }1622 if (dest.pathname + dest.search === shown) { return; }
1623+ if (dest.pathname !== location.pathname) {
1624+ if (!el.value.trim()) { return; }
1625+ liveJump = { path: dest.pathname, input: el };
1626+ saveScroll();
1627+ load({ target: dest, dest: dest, init: GET_INIT, how: 'nav', keep: false, post: false, form: null });
1628+ return;
1629+ }
1599 load({ target: dest, dest: dest, init: GET_INIT, how: 'query', keep: true, post: false, form: null });1630 load({ target: dest, dest: dest, init: GET_INIT, how: 'query', keep: true, post: false, form: null });
1600 }1631 }
1601 document.addEventListener('input', function (e) {1632 document.addEventListener('input', function (e) {
crates/forge-web/src/pages/audit_log.rsmodified+2 -2
@@ -139,8 +139,8 @@ async fn admin_audit_view(
139 <form method="get" action="/admin/audit">139 <form method="get" action="/admin/audit">
140 <div class="plain-search">140 <div class="plain-search">
141 <label class="sr-only" for="audit-actor">(g::t(lang, K::ActorUsername))</label>141 <label class="sr-only" for="audit-actor">(g::t(lang, K::ActorUsername))</label>
142- <input id="audit-actor" type="text" name="actor" value=(actor.as_str()) autocomplete="off">142+ <input id="audit-actor" type="search" name="actor" value=(actor.as_str()) placeholder=(g::t(lang, K::ActorUsername)) data-live-search="" autocomplete="off">
143- <button type="submit" class="act">(g::t(lang, K::Filter))</button>143+ <button type="submit" class="sr-only">(g::t(lang, K::Filter))</button>
144 </div>144 </div>
145 <div class="sub">145 <div class="sub">
146 <label>146 <label>
crates/forge-web/src/pages/ci_job.rsmodified+1 -1
@@ -435,7 +435,7 @@ async fn job_body(
435 ) -> Result<impl View> {435 ) -> Result<impl View> {
436 Ok(view! {436 Ok(view! {
437 repo_head(head: RepoHead { live: String::new(), ..head })437 repo_head(head: RepoHead { live: String::new(), ..head })
438- <div data-live=(live.as_str()) data-live-state=(job.fingerprint.as_str()) class="ci-job">438+ <div data-live=(live.as_str()) data-live-state=(job.fingerprint.as_str()) class="ci-job fit-pane">
439 <header class="ci-tl-head">439 <header class="ci-tl-head">
440 <div class="ci-tl-headmain">440 <div class="ci-tl-headmain">
441 <div class="ci-tl-line">441 <div class="ci-tl-line">
crates/forge-web/src/pages/ci_runs.rsmodified+2 -2
@@ -2250,7 +2250,7 @@ async fn runs_body(
2250 <p class="state" role="status">(text)</p>2250 <p class="state" role="status">(text)</p>
2251 }2251 }
2252 }2252 }
2253- <div data-live=(live.as_deref()) class="ci-split" data-now=(now_unix().to_string()) data-fm=(fm.as_str()) data-fs=(fs.as_str())>2253+ <div data-live=(live.as_deref()) class="ci-split fit-pane" data-now=(now_unix().to_string()) data-fm=(fm.as_str()) data-fs=(fs.as_str())>
2254 <svg class="ci-defs" width="0" height="0" focusable="false" aria-hidden="true">2254 <svg class="ci-defs" width="0" height="0" focusable="false" aria-hidden="true">
2255 <defs>2255 <defs>
2256 <pattern id="ci-hatch" width="6" height="6" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">2256 <pattern id="ci-hatch" width="6" height="6" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">
@@ -2654,7 +2654,7 @@ async fn run_body(
2654 <p class="state" role="status">(text)</p>2654 <p class="state" role="status">(text)</p>
2655 }2655 }
2656 }2656 }
2657- <div data-live=(live.as_deref()) class="ci-split" data-now=(now_unix().to_string()) data-fm=(fm.as_str()) data-fs=(fs.as_str())>2657+ <div data-live=(live.as_deref()) class="ci-split fit-pane" data-now=(now_unix().to_string()) data-fm=(fm.as_str()) data-fs=(fs.as_str())>
2658 <svg class="ci-defs" width="0" height="0" focusable="false" aria-hidden="true">2658 <svg class="ci-defs" width="0" height="0" focusable="false" aria-hidden="true">
2659 <defs>2659 <defs>
2660 <pattern id="ci-hatch" width="6" height="6" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">2660 <pattern id="ci-hatch" width="6" height="6" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">
crates/forge-web/src/pages/code_search.rsmodified+7 -8
@@ -212,29 +212,28 @@ async fn search_page(cx: &Cx) -> Result<impl View> {
212 <div class="search-page">212 <div class="search-page">
213 <form method="get" action=(action.as_str()) class="search-form" role="search">213 <form method="get" action=(action.as_str()) class="search-form" role="search">
214 <div class="plain-search">214 <div class="plain-search">
215- <input type="search" name="q" value=(q.as_str()) placeholder=(g::t(lang, K::SearchCodePlaceholder)) aria-label=(g::t(lang, K::SearchCodePlaceholder))>215+ <input type="search" name="q" value=(q.as_str()) data-live-search="" autocomplete="off" placeholder=(g::t(lang, K::SearchCodePlaceholder)) aria-label=(g::t(lang, K::SearchCodePlaceholder))>
216+ <button type="submit" class="sr-only">(g::t(lang, K::SearchButton))</button>
216 </div>217 </div>
217 <div class="field-pair">218 <div class="field-pair">
218 <div class="field">219 <div class="field">
219 <label for="search-ref">(g::t(lang, K::RefField))</label>220 <label for="search-ref">(g::t(lang, K::RefField))</label>
220- <input id="search-ref" type="text" name="ref" value=(ref_value.as_str()) placeholder=(ctx.repo.default_branch.as_str())>221+ // Not live: a half-typed branch name is a 404 page. It searches on leaving the field.
222+ <input id="search-ref" type="text" name="ref" value=(ref_value.as_str()) placeholder=(ctx.repo.default_branch.as_str()) data-autosubmit=(true)>
221 </div>223 </div>
222 <div class="field">224 <div class="field">
223 <label for="search-path">(g::t(lang, K::PathField))</label>225 <label for="search-path">(g::t(lang, K::PathField))</label>
224- <input id="search-path" type="text" name="path" value=(path_value.as_str()) placeholder="src/**/*.rs">226+ <input id="search-path" type="text" name="path" value=(path_value.as_str()) placeholder="src/**/*.rs" data-live-search="">
225 </div>227 </div>
226 </div>228 </div>
227 <label class="switch">229 <label class="switch">
228- <input type="checkbox" name="case" value="1" checked=(match_case)>230+ <input type="checkbox" name="case" value="1" checked=(match_case) data-autosubmit=(true)>
229 <span>(g::t(lang, K::MatchCase))</span>231 <span>(g::t(lang, K::MatchCase))</span>
230 </label>232 </label>
231 <label class="switch">233 <label class="switch">
232- <input type="checkbox" name="regex" value="1" checked=(regex)>234+ <input type="checkbox" name="regex" value="1" checked=(regex) data-autosubmit=(true)>
233 <span>(g::t(lang, K::RegexOption))</span>235 <span>(g::t(lang, K::RegexOption))</span>
234 </label>236 </label>
235- <div class="acts">
236- <button type="submit" class="primary">(g::t(lang, K::SearchButton))</button>
237- </div>
238 </form>237 </form>
239 if empty_repo {238 if empty_repo {
240 <p class="state">(empty_message.as_str())</p>239 <p class="state">(empty_message.as_str())</p>
crates/forge-web/src/pages/issues_list.rsmodified+2 -2
@@ -523,11 +523,11 @@ async fn issues_list_page(cx: &Cx) -> Result<impl View> {
523 <input type="hidden" name="author" value=(sel.author.as_str())>523 <input type="hidden" name="author" value=(sel.author.as_str())>
524 <input type="hidden" name="assignee" value=(sel.assignee.as_str())>524 <input type="hidden" name="assignee" value=(sel.assignee.as_str())>
525 <div class="plain-search">525 <div class="plain-search">
526- <input type="search" name="q" value=(search_value.as_str()) placeholder=(g::t(lang, K::SearchTitles)) aria-label=(g::t(lang, K::SearchTitles)) maxlength="256">526+ <input type="search" name="q" value=(search_value.as_str()) data-live-search="" autocomplete="off" placeholder=(g::t(lang, K::SearchTitles)) aria-label=(g::t(lang, K::SearchTitles)) maxlength="256">
527 <button type="submit" class="sr-only">(g::t(lang, K::Search))</button>527 <button type="submit" class="sr-only">(g::t(lang, K::Search))</button>
528 </div>528 </div>
529 <div class="sub">529 <div class="sub">
530- <select name="sort" aria-label=(g::t(lang, K::Sort))>530+ <select name="sort" aria-label=(g::t(lang, K::Sort)) data-autosubmit=(true)>
531 for option in sort_options.iter() {531 for option in sort_options.iter() {
532 <option value=(option.value) selected=(option.selected)>(option.label)</option>532 <option value=(option.value) selected=(option.selected)>(option.label)</option>
533 }533 }
crates/forge-web/src/pages/pulls_list.rsmodified+2 -2
@@ -287,7 +287,7 @@ async fn pulls_list_page(cx: &Cx) -> Result<impl View> {
287 <input type="hidden" name="author" value=(sel.author.as_str())>287 <input type="hidden" name="author" value=(sel.author.as_str())>
288 <input type="hidden" name="assignee" value=(sel.assignee.as_str())>288 <input type="hidden" name="assignee" value=(sel.assignee.as_str())>
289 <div class="plain-search">289 <div class="plain-search">
290- <input type="search" name="q" value=(search_value.as_str()) placeholder=(g::t(lang, K::SearchTitles)) aria-label=(g::t(lang, K::SearchTitles)) maxlength="256">290+ <input type="search" name="q" value=(search_value.as_str()) data-live-search="" autocomplete="off" placeholder=(g::t(lang, K::SearchTitles)) aria-label=(g::t(lang, K::SearchTitles)) maxlength="256">
291 <button type="submit" class="sr-only">(g::t(lang, K::Search))</button>291 <button type="submit" class="sr-only">(g::t(lang, K::Search))</button>
292 </div>292 </div>
293 <div class="sub">293 <div class="sub">
@@ -296,7 +296,7 @@ async fn pulls_list_page(cx: &Cx) -> Result<impl View> {
296 <option value="true" selected=(draft_sel == "true")>(g::t(lang, K::DraftOnly))</option>296 <option value="true" selected=(draft_sel == "true")>(g::t(lang, K::DraftOnly))</option>
297 <option value="false" selected=(draft_sel == "false")>(g::t(lang, K::DraftReadyOnly))</option>297 <option value="false" selected=(draft_sel == "false")>(g::t(lang, K::DraftReadyOnly))</option>
298 </select>298 </select>
299- <select name="sort" aria-label=(g::t(lang, K::SortLabel))>299+ <select name="sort" aria-label=(g::t(lang, K::SortLabel)) data-autosubmit=(true)>
300 for option in sort_options.iter() {300 for option in sort_options.iter() {
301 <option value=(option.value) selected=(option.selected)>(option.label)</option>301 <option value=(option.value) selected=(option.selected)>(option.label)</option>
302 }302 }
crates/forge-web/src/pages/repo.rsmodified+1 -1
@@ -215,7 +215,7 @@ pub async fn repo_head(head: RepoHead) -> Result<impl View> {
215 repo_tabs(owner: owner.clone(), repo: name.clone(), default_branch: default_branch.clone(), active: active.clone(), can_admin: can_admin, lang: lang, open_issues: Some(open_issues), open_pulls: Some(open_pulls), discussions: discussions, wiki: wiki, security: security)215 repo_tabs(owner: owner.clone(), repo: name.clone(), default_branch: default_branch.clone(), active: active.clone(), can_admin: can_admin, lang: lang, open_issues: Some(open_issues), open_pulls: Some(open_pulls), discussions: discussions, wiki: wiki, security: security)
216 if !hide_search && active == "code" {216 if !hide_search && active == "code" {
217 <form method="get" action=(search_action.as_str()) class="plain-search" role="search">217 <form method="get" action=(search_action.as_str()) class="plain-search" role="search">
218- <input type="search" name="q" placeholder=(search_label) aria-label=(search_label) autocomplete="off">218+ <input type="search" name="q" data-live-search="" placeholder=(search_label) aria-label=(search_label) autocomplete="off">
219 </form>219 </form>
220 }220 }
221 </section>221 </section>
crates/forge-web/src/views/mod.rsmodified+11 -9
@@ -692,14 +692,16 @@ pub async fn shell(
692 </head>692 </head>
693 <body data-link-restarting=(lk::t(lang, LinkKey::Restarting)) data-link-back=(lk::t(lang, LinkKey::BackSubmit)) data-done-saved=(lk::t(lang, LinkKey::Saved)) data-done-ok=(lk::t(lang, LinkKey::Done)) data-draft-restored=(lk::t(lang, LinkKey::DraftRestored)) data-draft-discard=(lk::t(lang, LinkKey::DraftDiscard)) data-select-filter=(lk::t(lang, LinkKey::SelectFilter)) data-select-none=(lk::t(lang, LinkKey::SelectNone)) data-signed-in=(signed_in.then(|| "true".to_owned())) data-tree-w=(tree_w) data-corner-pos=(corner_pos)>693 <body data-link-restarting=(lk::t(lang, LinkKey::Restarting)) data-link-back=(lk::t(lang, LinkKey::BackSubmit)) data-done-saved=(lk::t(lang, LinkKey::Saved)) data-done-ok=(lk::t(lang, LinkKey::Done)) data-draft-restored=(lk::t(lang, LinkKey::DraftRestored)) data-draft-discard=(lk::t(lang, LinkKey::DraftDiscard)) data-select-filter=(lk::t(lang, LinkKey::SelectFilter)) data-select-none=(lk::t(lang, LinkKey::SelectNone)) data-signed-in=(signed_in.then(|| "true".to_owned())) data-tree-w=(tree_w) data-corner-pos=(corner_pos)>
694 <header class="topbar">694 <header class="topbar">
695- <a class="wordmark" href="/">695+ <div class="top-start">
696- <svg class="ico wordmark-mark" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 19c0-7 5-12 14-13-1 9-6 14-13 14"/><path d="M5 19l6-6"/></svg>696+ <a class="wordmark" href="/">
697- "forge"697+ <svg class="ico wordmark-mark" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 19c0-7 5-12 14-13-1 9-6 14-13 14"/><path d="M5 19l6-6"/></svg>
698- </a>698+ "forge"
699- <a class="top-explore" href="/explore" title=(explore_label) aria-label=(explore_label)>699+ </a>
700- <svg class="ico" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="m15.5 8.5-2 5-5 2 2-5z"/></svg>700+ <a class="top-explore" href="/explore" title=(explore_label) aria-label=(explore_label)>
701- <span>(explore_label)</span>701+ <svg class="ico" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="m15.5 8.5-2 5-5 2 2-5z"/></svg>
702- </a>702+ <span>(explore_label)</span>
703+ </a>
704+ </div>
703 <nav class="pathbar" aria-label=(mi::t(lang, MK::BreadcrumbNav))>705 <nav class="pathbar" aria-label=(mi::t(lang, MK::BreadcrumbNav))>
704 if signed_in {706 if signed_in {
705 <svg class="ico pathbar-ico" viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>707 <svg class="ico pathbar-ico" viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>
@@ -754,7 +756,7 @@ pub async fn shell(
754 } else {756 } else {
755 <form class="top-search" role="search" method="get" action="/explore">757 <form class="top-search" role="search" method="get" action="/explore">
756 <svg class="ico top-search-icon" viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>758 <svg class="ico top-search-icon" viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>
757- <input type="search" name="q" placeholder=(search_label) aria-label=(search_label)>759+ <input type="search" name="q" data-live-search="" autocomplete="off" placeholder=(search_label) aria-label=(search_label)>
758 </form>760 </form>
759 <form class="theme-form" method="post" action="/-/theme">761 <form class="theme-form" method="post" action="/-/theme">
760 if let Some(csrf) = theme_csrf {762 if let Some(csrf) = theme_csrf {
scripts/audit/measure.tsmodified+7 -0
@@ -154,6 +154,13 @@ const CHECK = `(() => {
154 if (t && t.getBoundingClientRect().top >= i.bottom - 1) bad.push('tick above its label: ' + t.textContent.trim().slice(0, 30));154 if (t && t.getBoundingClientRect().top >= i.bottom - 1) bad.push('tick above its label: ' + t.textContent.trim().slice(0, 30));
155 }155 }
156 }156 }
157+ // A pane that lost its height: its content is there and nothing of it can be seen.
158+ for (const e of main.querySelectorAll('div, section, ul, ol, pre, article')) {
159+ const r = e.getBoundingClientRect();
160+ if (r.height >= 4 || r.width < 40 || e.closest('.sr-only, [hidden]') || !e.innerText?.trim()) continue;
161+ if (e.children.length === 1 && e.firstElementChild.matches('.sr-only')) continue;
162+ if (getComputedStyle(e).display !== 'none') bad.push('collapsed: ' + e.tagName + '.' + String(e.className).slice(0, 40) + ' height ' + Math.round(r.height));
163+ }
157 for (const b of main.querySelectorAll('.acts > button:not(.act, .primary), .sec button.danger:not(.act)')) bad.push('button where a text link belongs: ' + b.textContent.trim().slice(0, 30));164 for (const b of main.querySelectorAll('.acts > button:not(.act, .primary), .sec button.danger:not(.act)')) bad.push('button where a text link belongs: ' + b.textContent.trim().slice(0, 30));
158 return [...new Set(bad)];165 return [...new Set(bad)];
159 })()`;166 })()`;
style/_min.scssmodified+13 -8
@@ -30,6 +30,14 @@
30 gap: 0;30 gap: 0;
31 }31 }
32 32
33+// The logo and Explore. Both take the width of their own text, so neither runs under the other.
34+.top-start {
35+ display: flex;
36+ flex: none;
37+ align-items: center;
38+ gap: 4px;
39+}
40+
33 .top-explore {41 .top-explore {
34 display: inline-flex;42 display: inline-flex;
35 align-items: center;43 align-items: center;
@@ -60,15 +68,12 @@
60 border-bottom: 1px solid var(--border);68 border-bottom: 1px solid var(--border);
61 }69 }
62 70
63- .wordmark {71+ // The logo and Explore hold the room up to the edge, so the path bar stands on it.
64- width: 66px;72+ .top-start {
65- }
66-
67- // The logo and Explore fill the room up to the edge, so the path bar stands on it.
68- .top-explore {
69- width: calc(var(--edge) - 24px - 66px - 8px);
70 box-sizing: border-box;73 box-sizing: border-box;
71- margin-right: 8px;74+ width: calc(var(--edge) - 24px);
75+ min-width: max-content;
76+ padding-right: 6px;
72 }77 }
73 78
74 .pathbar,79 .pathbar,
style/_min_ci.scssmodified+26 -0
@@ -12,6 +12,24 @@
12 margin-left: 0;12 margin-left: 0;
13 }13 }
14 14
15+// Links and buttons in the log's tools sit on one line, whatever element each one is.
16+.ci-tl-tools {
17+ gap: 14px;
18+
19+ .act {
20+ align-self: center;
21+ margin: 0;
22+ font-size: 14px;
23+ line-height: 20px;
24+ }
25+}
26+
27+// The runs pane has a border: its head keeps the same inset as the rows under it.
28+.ci-split > .ci-side .ci-side-head {
29+ padding: 8px 14px;
30+ margin-bottom: 0;
31+}
32+
15 // An action that opens in place takes the title line's full width when it needs it.33 // An action that opens in place takes the title line's full width when it needs it.
16 .ci-tl-line {34 .ci-tl-line {
17 flex-wrap: wrap;35 flex-wrap: wrap;
@@ -30,3 +48,11 @@
30 letter-spacing: 0;48 letter-spacing: 0;
31 text-transform: none;49 text-transform: none;
32 }50 }
51+
52+// On a phone the page scrolls, so the jobs and the log take their own height. The list's run pane
53+// has no fixed height to share out, and a pane sized from it would be nothing.
54+@media (max-width: 899px) {
55+ .ci-split.fit-pane > .ci-detail > .ci-tl-main {
56+ flex: none;
57+ }
58+}