Every filter searches, and dates take a span
Browse files at this commitce0b3d8173c3337151aeb7c8541a1020815275baParent: 125a1f6- feat
- every filter searches, and dates take a span
5 changed files +206 -21
- crates/izlek-web/src/dropdown.rs +1 -1
- crates/izlek-web/src/i18n.rs +6 -0
- crates/izlek-web/src/logs.rs +86 -20
- crates/izlek-web/tests/http.rs +107 -0
- style/main.scss +6 -0
crates/izlek-web/src/dropdown.rsmodified+1 -1
| @@ -117,7 +117,7 @@ pub async fn dropdown_script(cx: &Cx) -> Result { | |||
| 117 | panel.__ddTrigger = trigger;\ | 117 | panel.__ddTrigger = trigger;\ |
| 118 | var allOpts = opts(select);\ | 118 | var allOpts = opts(select);\ |
| 119 | var search = null;\ | 119 | var search = null;\ |
| 120 | - if (allOpts.length > 7) {\ | 120 | + if (allOpts.length > 7 || select.hasAttribute('data-search')) {\ |
| 121 | search = document.createElement('input');\ | 121 | search = document.createElement('input');\ |
| 122 | search.type = 'text';\ | 122 | search.type = 'text';\ |
| 123 | search.className = 'dd-search';\ | 123 | search.className = 'dd-search';\ |
crates/izlek-web/src/i18n.rsmodified+6 -0
| @@ -293,6 +293,8 @@ pub enum Key { | |||
| 293 | LogSystem, | 293 | LogSystem, |
| 294 | Newest, | 294 | Newest, |
| 295 | Oldest, | 295 | Oldest, |
| 296 | + From, | ||
| 297 | + To, | ||
| 296 | } | 298 | } |
| 297 | 299 | ||
| 298 | /// The lone templated phrase — a name in the middle reads worse as two | 300 | /// The lone templated phrase — a name in the middle reads worse as two |
| @@ -828,6 +830,10 @@ pub fn t(lang: Lang, key: Key) -> &'static str { | |||
| 828 | (Newest, Tr) => "En yeni", | 830 | (Newest, Tr) => "En yeni", |
| 829 | (Oldest, En) => "Oldest", | 831 | (Oldest, En) => "Oldest", |
| 830 | (Oldest, Tr) => "En eski", | 832 | (Oldest, Tr) => "En eski", |
| 833 | + (From, En) => "From", | ||
| 834 | + (From, Tr) => "Başlangıç", | ||
| 835 | + (To, En) => "To", | ||
| 836 | + (To, Tr) => "Bitiş", | ||
| 831 | } | 837 | } |
| 832 | } | 838 | } |
| 833 | 839 | ||
crates/izlek-web/src/logs.rsmodified+86 -20
| @@ -373,17 +373,65 @@ fn parse_dir(query: &str) -> Dir { | |||
| 373 | } | 373 | } |
| 374 | } | 374 | } |
| 375 | 375 | ||
| 376 | -/// `on=YYYY-MM-DD`, resolved to a half-open UTC range in the admin's own | 376 | +/// `YYYY-MM-DD`, resolved to that day's midnight in the admin's own |
| 377 | -/// timezone. Unparsable or absent is no filter, never a 500. | 377 | +/// timezone then converted to UTC. Unparsable is no bound, never a 500. |
| 378 | -fn parse_day(raw: &str, zone: time::UtcOffset) -> Option<(OffsetDateTime, OffsetDateTime)> { | 378 | +fn parse_day_start(raw: &str, zone: time::UtcOffset) -> Option<OffsetDateTime> { |
| 379 | use time::macros::format_description; | 379 | use time::macros::format_description; |
| 380 | let day = time::Date::parse(raw, format_description!("[year]-[month]-[day]")).ok()?; | 380 | let day = time::Date::parse(raw, format_description!("[year]-[month]-[day]")).ok()?; |
| 381 | - let start = day | 381 | + Some(day.with_hms(0, 0, 0).ok()?.assume_offset(zone).to_offset(time::UtcOffset::UTC)) |
| 382 | - .with_hms(0, 0, 0) | 382 | +} |
| 383 | - .ok()? | 383 | + |
| 384 | - .assume_offset(zone) | 384 | +/// A bound that can never exclude a real row, for the open side of a |
| 385 | - .to_offset(time::UtcOffset::UTC); | 385 | +/// one-sided range. `Date::MIN`'s negative year does not round-trip through |
| 386 | - Some((start, start + time::Duration::hours(24))) | 386 | +/// the store's Rfc3339 timestamp encoding (no sign, 4 digits only), so the |
| 387 | +/// far ends stay inside that format's representable range instead. | ||
| 388 | +fn far_past() -> OffsetDateTime { | ||
| 389 | + time::PrimitiveDateTime::new( | ||
| 390 | + time::Date::from_calendar_date(1, time::Month::January, 1).expect("valid"), | ||
| 391 | + time::Time::MIDNIGHT, | ||
| 392 | + ) | ||
| 393 | + .assume_utc() | ||
| 394 | +} | ||
| 395 | + | ||
| 396 | +fn far_future() -> OffsetDateTime { | ||
| 397 | + time::PrimitiveDateTime::new(time::Date::MAX, time::Time::MIDNIGHT).assume_utc() | ||
| 398 | +} | ||
| 399 | + | ||
| 400 | +/// `from=`/`to=YYYY-MM-DD` (or the `on=` shorthand for a single day), | ||
| 401 | +/// resolved to a half-open UTC range in the admin's own timezone. `to` is | ||
| 402 | +/// inclusive of its whole day. A backwards range is swapped rather than | ||
| 403 | +/// read as empty. Unparsable or absent bounds fall back to the open ends, | ||
| 404 | +/// so garbage input narrows nothing rather than 500ing. | ||
| 405 | +fn parse_day_range( | ||
| 406 | + query: &str, | ||
| 407 | + zone: time::UtcOffset, | ||
| 408 | +) -> Option<(OffsetDateTime, OffsetDateTime)> { | ||
| 409 | + let (from_raw, to_raw) = match (query_value(query, "from"), query_value(query, "to")) { | ||
| 410 | + (None, None) => match query_value(query, "on").filter(|v| !v.is_empty()) { | ||
| 411 | + Some(on) => (Some(on), Some(on)), | ||
| 412 | + None => return None, | ||
| 413 | + }, | ||
| 414 | + (from, to) => (from.filter(|v| !v.is_empty()), to.filter(|v| !v.is_empty())), | ||
| 415 | + }; | ||
| 416 | + if from_raw.is_none() && to_raw.is_none() { | ||
| 417 | + return None; | ||
| 418 | + } | ||
| 419 | + // Compare the raw day starts — not `to`'s already-widened end-of-day — | ||
| 420 | + // so a backwards pick swaps the two *days*, not a day boundary against | ||
| 421 | + // one shifted 24h later. | ||
| 422 | + let mut from_start = from_raw.and_then(|raw| parse_day_start(raw, zone)); | ||
| 423 | + let mut to_start = to_raw.and_then(|raw| parse_day_start(raw, zone)); | ||
| 424 | + if let (Some(f), Some(t)) = (from_start, to_start) { | ||
| 425 | + if f > t { | ||
| 426 | + std::mem::swap(&mut from_start, &mut to_start); | ||
| 427 | + } | ||
| 428 | + } | ||
| 429 | + let start = from_start.unwrap_or_else(far_past); | ||
| 430 | + let end = match to_start { | ||
| 431 | + Some(to_start) => to_start + time::Duration::hours(24), | ||
| 432 | + None => far_future(), | ||
| 433 | + }; | ||
| 434 | + Some((start, end)) | ||
| 387 | } | 435 | } |
| 388 | 436 | ||
| 389 | /// The activity tab's filter, straight off the query: an absent or empty | 437 | /// The activity tab's filter, straight off the query: an absent or empty |
| @@ -395,7 +443,7 @@ fn parse_activity_filter(query: &str, zone: time::UtcOffset) -> ActivityFilter { | |||
| 395 | task_key: query_value(query, "task") | 443 | task_key: query_value(query, "task") |
| 396 | .filter(|v| !v.is_empty()) | 444 | .filter(|v| !v.is_empty()) |
| 397 | .map(|v| v.to_uppercase()), | 445 | .map(|v| v.to_uppercase()), |
| 398 | - day: query_value(query, "on").and_then(|raw| parse_day(raw, zone)), | 446 | + day: parse_day_range(query, zone), |
| 399 | } | 447 | } |
| 400 | } | 448 | } |
| 401 | 449 | ||
| @@ -404,7 +452,7 @@ fn parse_activity_filter(query: &str, zone: time::UtcOffset) -> ActivityFilter { | |||
| 404 | /// filter form's own action so a page turn never drops a filter. | 452 | /// filter form's own action so a page turn never drops a filter. |
| 405 | fn activity_query_suffix(query: &str) -> String { | 453 | fn activity_query_suffix(query: &str) -> String { |
| 406 | let mut out = String::new(); | 454 | let mut out = String::new(); |
| 407 | - for key in ["actor", "kind", "task", "on", "dir"] { | 455 | + for key in ["actor", "kind", "task", "from", "to", "on", "dir"] { |
| 408 | if let Some(value) = query_value(query, key).filter(|v| !v.is_empty()) { | 456 | if let Some(value) = query_value(query, key).filter(|v| !v.is_empty()) { |
| 409 | out.push('&'); | 457 | out.push('&'); |
| 410 | out.push_str(key); | 458 | out.push_str(key); |
| @@ -776,13 +824,21 @@ async fn logs_screen( | |||
| 776 | .map(|q| format!("/logs?section={slug}&{q}{extra}")); | 824 | .map(|q| format!("/logs?section={slug}&{q}{extra}")); |
| 777 | let position_note = links.position.map(|(x, y, n)| format!("{x}\u{2013}{y} / {n}")); | 825 | let position_note = links.position.map(|(x, y, n)| format!("{x}\u{2013}{y} / {n}")); |
| 778 | 826 | ||
| 779 | - let (filter_actor, filter_kind, filter_task, filter_on, filter_dir) = ( | 827 | + let (filter_actor, filter_kind, filter_task, filter_dir) = ( |
| 780 | query_value(query, "actor").unwrap_or("").to_string(), | 828 | query_value(query, "actor").unwrap_or("").to_string(), |
| 781 | query_value(query, "kind").unwrap_or("").to_string(), | 829 | query_value(query, "kind").unwrap_or("").to_string(), |
| 782 | query_value(query, "task").unwrap_or("").to_string(), | 830 | query_value(query, "task").unwrap_or("").to_string(), |
| 783 | - query_value(query, "on").unwrap_or("").to_string(), | ||
| 784 | query_value(query, "dir").unwrap_or("").to_string(), | 831 | query_value(query, "dir").unwrap_or("").to_string(), |
| 785 | ); | 832 | ); |
| 833 | + // `on=` is a shorthand for `from=to=on`; the boxes themselves only ever | ||
| 834 | + // read/write `from`/`to`, so a link that arrived with only `on=` shows | ||
| 835 | + // it in both. | ||
| 836 | + let (filter_from, filter_to) = { | ||
| 837 | + let on = query_value(query, "on").unwrap_or(""); | ||
| 838 | + let from = query_value(query, "from").unwrap_or(on).to_string(); | ||
| 839 | + let to = query_value(query, "to").unwrap_or(on).to_string(); | ||
| 840 | + (from, to) | ||
| 841 | + }; | ||
| 786 | let members: Vec<(String, String)> = if section == Section::Activity { | 842 | let members: Vec<(String, String)> = if section == Section::Activity { |
| 787 | let store = accounts(cx).store().clone(); | 843 | let store = accounts(cx).store().clone(); |
| 788 | match store.user(&me.id).await? { | 844 | match store.user(&me.id).await? { |
| @@ -940,32 +996,42 @@ async fn logs_screen( | |||
| 940 | <div class="panel-body"> | 996 | <div class="panel-body"> |
| 941 | <form class="filterbar log-filterbar" method="get" action="/logs"> | 997 | <form class="filterbar log-filterbar" method="get" action="/logs"> |
| 942 | <input type="hidden" name="section" value="activity"> | 998 | <input type="hidden" name="section" value="activity"> |
| 943 | - <select class="field-input" name="actor" data-autosubmit=""> | 999 | + <select class="field-input" name="actor" data-autosubmit="" data-search=""> |
| 944 | <option value="" selected=(filter_actor.is_empty())>(t(lang, Key::All))</option> | 1000 | <option value="" selected=(filter_actor.is_empty())>(t(lang, Key::All))</option> |
| 945 | <option value="system" selected=(filter_actor == "system")>(t(lang, Key::LogSystem))</option> | 1001 | <option value="system" selected=(filter_actor == "system")>(t(lang, Key::LogSystem))</option> |
| 946 | for member in &members { | 1002 | for member in &members { |
| 947 | <option value=(member.0.clone()) selected=(filter_actor == member.0)>(member.1.clone())</option> | 1003 | <option value=(member.0.clone()) selected=(filter_actor == member.0)>(member.1.clone())</option> |
| 948 | } | 1004 | } |
| 949 | </select> | 1005 | </select> |
| 950 | - <select class="field-input" name="kind" data-autosubmit=""> | 1006 | + <select class="field-input" name="kind" data-autosubmit="" data-search=""> |
| 951 | <option value="" selected=(filter_kind.is_empty())>(t(lang, Key::All))</option> | 1007 | <option value="" selected=(filter_kind.is_empty())>(t(lang, Key::All))</option> |
| 952 | for kind in ACTIVITY_KINDS { | 1008 | for kind in ACTIVITY_KINDS { |
| 953 | <option value=(kind) selected=(filter_kind == *kind)>(crate::i18n::activity_kind_word(lang, kind))</option> | 1009 | <option value=(kind) selected=(filter_kind == *kind)>(crate::i18n::activity_kind_word(lang, kind))</option> |
| 954 | } | 1010 | } |
| 955 | </select> | 1011 | </select> |
| 956 | - <select class="field-input" name="task" data-autosubmit=""> | 1012 | + <select class="field-input" name="task" data-autosubmit="" data-search=""> |
| 957 | <option value="" selected=(filter_task.is_empty())>(t(lang, Key::All))</option> | 1013 | <option value="" selected=(filter_task.is_empty())>(t(lang, Key::All))</option> |
| 958 | for task in &tasks { | 1014 | for task in &tasks { |
| 959 | <option value=(task.0.clone()) selected=(filter_task == task.0)>(format!("{} {}", task.0, task.1))</option> | 1015 | <option value=(task.0.clone()) selected=(filter_task == task.0)>(format!("{} {}", task.0, task.1))</option> |
| 960 | } | 1016 | } |
| 961 | </select> | 1017 | </select> |
| 962 | <div class="edit edit-pop datepick-pop"> | 1018 | <div class="edit edit-pop datepick-pop"> |
| 963 | - <input class="edit-toggle" type="checkbox" id="log-on-toggle" aria-label=(t(lang, Key::All))> | 1019 | + <input class="edit-toggle" type="checkbox" id="log-from-toggle" aria-label=(t(lang, Key::From))> |
| 964 | - <label class="field-box edit-view edit-hit" for="log-on-toggle"> | 1020 | + <label class="field-box edit-view edit-hit" for="log-from-toggle"> |
| 965 | - <span class="field-text datepick-label" data-empty=(t(lang, Key::All))>(if filter_on.is_empty() { t(lang, Key::All).to_string() } else { filter_on.clone() })</span> | 1021 | + <span class="field-text datepick-label" data-empty=(t(lang, Key::From))>(if filter_from.is_empty() { t(lang, Key::From).to_string() } else { filter_from.clone() })</span> |
| 1022 | + </label> | ||
| 1023 | + <div class="edit-form pop-panel datepick-panel"> | ||
| 1024 | + (datepicker_grid(cx, "from", &filter_from, true, lang).await?) | ||
| 1025 | + </div> | ||
| 1026 | + </div> | ||
| 1027 | + <span class="log-range-dash">("\u{2013}")</span> | ||
| 1028 | + <div class="edit edit-pop datepick-pop"> | ||
| 1029 | + <input class="edit-toggle" type="checkbox" id="log-to-toggle" aria-label=(t(lang, Key::To))> | ||
| 1030 | + <label class="field-box edit-view edit-hit" for="log-to-toggle"> | ||
| 1031 | + <span class="field-text datepick-label" data-empty=(t(lang, Key::To))>(if filter_to.is_empty() { t(lang, Key::To).to_string() } else { filter_to.clone() })</span> | ||
| 966 | </label> | 1032 | </label> |
| 967 | <div class="edit-form pop-panel datepick-panel"> | 1033 | <div class="edit-form pop-panel datepick-panel"> |
| 968 | - (datepicker_grid(cx, "on", &filter_on, true, lang).await?) | 1034 | + (datepicker_grid(cx, "to", &filter_to, true, lang).await?) |
| 969 | </div> | 1035 | </div> |
| 970 | </div> | 1036 | </div> |
| 971 | <select class="field-input" name="dir" data-autosubmit=""> | 1037 | <select class="field-input" name="dir" data-autosubmit=""> |
crates/izlek-web/tests/http.rsmodified+107 -0
| @@ -4934,6 +4934,113 @@ async fn the_day_filter_keeps_only_that_days_rows() { | |||
| 4934 | assert!(!html.contains("old-row"), "{html}"); | 4934 | assert!(!html.contains("old-row"), "{html}"); |
| 4935 | } | 4935 | } |
| 4936 | 4936 | ||
| 4937 | +/// `from=`/`to=` narrows the feed to an inclusive span of days, in the | ||
| 4938 | +/// admin's own timezone (UTC by default in this fixture): a row on the `to` | ||
| 4939 | +/// day itself is kept, not just the days strictly between. | ||
| 4940 | +#[tokio::test] | ||
| 4941 | +async fn the_range_filter_keeps_the_inclusive_span() { | ||
| 4942 | + let app = App::open().await; | ||
| 4943 | + let admin_cookie = admin(&app).await; | ||
| 4944 | + | ||
| 4945 | + let base = time::OffsetDateTime::now_utc() | ||
| 4946 | + .replace_time(time::Time::from_hms(12, 0, 0).unwrap()); | ||
| 4947 | + for i in 0..5i64 { | ||
| 4948 | + let day = base + time::Duration::days(i); | ||
| 4949 | + app.store | ||
| 4950 | + .record_event( | ||
| 4951 | + None, | ||
| 4952 | + &izlek_core::detail::ActivityKind::Other("row".to_string()), | ||
| 4953 | + &format!("day{i}-row"), | ||
| 4954 | + day, | ||
| 4955 | + ) | ||
| 4956 | + .await | ||
| 4957 | + .unwrap(); | ||
| 4958 | + } | ||
| 4959 | + let ymd = |dt: time::OffsetDateTime| format!("{:04}-{:02}-{:02}", dt.year(), dt.month() as u8, dt.day()); | ||
| 4960 | + let from = ymd(base + time::Duration::days(1)); | ||
| 4961 | + let to = ymd(base + time::Duration::days(3)); | ||
| 4962 | + | ||
| 4963 | + let ranged = app | ||
| 4964 | + .get(&format!("/logs?section=activity&from={from}&to={to}"), Some(&admin_cookie)) | ||
| 4965 | + .await; | ||
| 4966 | + let html = String::from_utf8_lossy(&ranged.bytes).into_owned(); | ||
| 4967 | + assert!(!html.contains("day0-row"), "{html}"); | ||
| 4968 | + assert!(html.contains("day1-row"), "{html}"); | ||
| 4969 | + assert!(html.contains("day2-row"), "{html}"); | ||
| 4970 | + // The `to` day itself is included — the off-by-one that matters. | ||
| 4971 | + assert!(html.contains("day3-row"), "{html}"); | ||
| 4972 | + assert!(!html.contains("day4-row"), "{html}"); | ||
| 4973 | + | ||
| 4974 | + let from_only = app | ||
| 4975 | + .get(&format!("/logs?section=activity&from={from}"), Some(&admin_cookie)) | ||
| 4976 | + .await; | ||
| 4977 | + let from_only_html = String::from_utf8_lossy(&from_only.bytes).into_owned(); | ||
| 4978 | + assert!(!from_only_html.contains("day0-row"), "{from_only_html}"); | ||
| 4979 | + assert!(from_only_html.contains("day1-row"), "{from_only_html}"); | ||
| 4980 | + assert!(from_only_html.contains("day4-row"), "{from_only_html}"); | ||
| 4981 | + | ||
| 4982 | + let to_only = app | ||
| 4983 | + .get(&format!("/logs?section=activity&to={to}"), Some(&admin_cookie)) | ||
| 4984 | + .await; | ||
| 4985 | + let to_only_html = String::from_utf8_lossy(&to_only.bytes).into_owned(); | ||
| 4986 | + assert!(to_only_html.contains("day0-row"), "{to_only_html}"); | ||
| 4987 | + assert!(to_only_html.contains("day3-row"), "{to_only_html}"); | ||
| 4988 | + assert!(!to_only_html.contains("day4-row"), "{to_only_html}"); | ||
| 4989 | + | ||
| 4990 | + // A reversed range (from later than to) is swapped, not empty: same rows | ||
| 4991 | + // as the correctly-ordered range, though the form itself keeps echoing | ||
| 4992 | + // the raw (reversed) query values so it does not overrule what the user | ||
| 4993 | + // typed. | ||
| 4994 | + let reversed = app | ||
| 4995 | + .get(&format!("/logs?section=activity&from={to}&to={from}"), Some(&admin_cookie)) | ||
| 4996 | + .await; | ||
| 4997 | + let reversed_html = String::from_utf8_lossy(&reversed.bytes).into_owned(); | ||
| 4998 | + for i in 1..=3 { | ||
| 4999 | + assert!(reversed_html.contains(&format!("day{i}-row")), "{reversed_html}"); | ||
| 5000 | + } | ||
| 5001 | + assert!(!reversed_html.contains("day0-row"), "{reversed_html}"); | ||
| 5002 | + assert!(!reversed_html.contains("day4-row"), "{reversed_html}"); | ||
| 5003 | + | ||
| 5004 | + // Garbage bounds narrow nothing rather than 500ing. | ||
| 5005 | + let garbage = app.get("/logs?section=activity&from=zz&to=zz", Some(&admin_cookie)).await; | ||
| 5006 | + assert_eq!(garbage.status, StatusCode::OK); | ||
| 5007 | + let garbage_html = String::from_utf8_lossy(&garbage.bytes).into_owned(); | ||
| 5008 | + for i in 0..5 { | ||
| 5009 | + assert!(garbage_html.contains(&format!("day{i}-row")), "{garbage_html}"); | ||
| 5010 | + } | ||
| 5011 | +} | ||
| 5012 | + | ||
| 5013 | +/// An Older href on a range-filtered page keeps carrying `from=`/`to=` so | ||
| 5014 | +/// paging never drops the range. | ||
| 5015 | +#[tokio::test] | ||
| 5016 | +async fn the_older_href_round_trips_the_range_filter() { | ||
| 5017 | + let app = App::open().await; | ||
| 5018 | + let admin_cookie = admin(&app).await; | ||
| 5019 | + | ||
| 5020 | + let t0 = time::OffsetDateTime::now_utc(); | ||
| 5021 | + for i in 0..60 { | ||
| 5022 | + app.store | ||
| 5023 | + .record_event( | ||
| 5024 | + None, | ||
| 5025 | + &izlek_core::detail::ActivityKind::Other("row".to_string()), | ||
| 5026 | + &format!("row {i}"), | ||
| 5027 | + t0 + time::Duration::seconds(i), | ||
| 5028 | + ) | ||
| 5029 | + .await | ||
| 5030 | + .unwrap(); | ||
| 5031 | + } | ||
| 5032 | + let from = format!("{:04}-{:02}-{:02}", t0.year(), t0.month() as u8, t0.day()); | ||
| 5033 | + let to = from.clone(); | ||
| 5034 | + | ||
| 5035 | + let first = app | ||
| 5036 | + .get(&format!("/logs?section=activity&from={from}&to={to}"), Some(&admin_cookie)) | ||
| 5037 | + .await; | ||
| 5038 | + let first_html = String::from_utf8_lossy(&first.bytes).into_owned(); | ||
| 5039 | + let older_href = extract_href(&first_html, "/logs?section=activity&before=").replace("&", "&"); | ||
| 5040 | + assert!(older_href.contains(&format!("from={from}")), "{older_href}"); | ||
| 5041 | + assert!(older_href.contains(&format!("to={to}")), "{older_href}"); | ||
| 5042 | +} | ||
| 5043 | + | ||
| 4937 | /// The `izlek_rows_activity` cookie the page's own fit script sets caps the | 5044 | /// The `izlek_rows_activity` cookie the page's own fit script sets caps the |
| 4938 | /// page at that many rows, no more. | 5045 | /// page at that many rows, no more. |
| 4939 | #[tokio::test] | 5046 | #[tokio::test] |
style/main.scssmodified+6 -0
| @@ -2933,6 +2933,12 @@ input[type="radio"] { | |||
| 2933 | padding: 14px 18px; | 2933 | padding: 14px 18px; |
| 2934 | } | 2934 | } |
| 2935 | 2935 | ||
| 2936 | +.log-range-dash { | ||
| 2937 | + align-self: center; | ||
| 2938 | + margin: 0 2px; | ||
| 2939 | + color: var(--muted); | ||
| 2940 | +} | ||
| 2941 | + | ||
| 2936 | // The pager foot's read of where the rendered rows sit in the whole feed. | 2942 | // The pager foot's read of where the rendered rows sit in the whole feed. |
| 2937 | .log-count { | 2943 | .log-count { |
| 2938 | font-family: var(--font-mono); | 2944 | font-family: var(--font-mono); |