diff --git a/crates/im-web/assets/main.css b/crates/im-web/assets/main.css index 5ff3e78..e09d42f 100644 --- a/crates/im-web/assets/main.css +++ b/crates/im-web/assets/main.css @@ -880,6 +880,26 @@ a.wordmark-home { min-width: 0; } +body:has(.log-list) { + height: 100vh; + height: 100dvh; + overflow: hidden; +} +body:has(.log-list) .admin-shell { + height: 100%; +} +body:has(.log-list) .admin-column { + height: 100%; +} +body:has(.log-list) .admin-card:has(.log-list) { + min-height: 0; +} + +.log-list-wrap { + min-height: 0; + overflow-y: auto; +} + .logs-foot { display: flex; align-items: center; @@ -962,7 +982,7 @@ a.wordmark-home { height: var(--control-h); box-sizing: border-box; } -.admin-invite .admin-role { +.admin-invite select.admin-role { flex: 0 0 auto; width: auto; padding: 0 28px 0 12px; @@ -1108,6 +1128,11 @@ input[type=checkbox] { display: none; } +.admin-invite .dd-trigger { + flex: 0 0 auto; + width: auto; +} + .dd-trigger { display: flex; align-items: center; diff --git a/crates/im-web/src/admin.rs b/crates/im-web/src/admin.rs index 97af0e1..e7a308e 100644 --- a/crates/im-web/src/admin.rs +++ b/crates/im-web/src/admin.rs @@ -779,10 +779,10 @@ async fn logs_section(cx: &Cx, lang: i18n::Lang) -> Result{}"#, t(lang, Key::LogsEmpty)) } else { format!( - r#" + r#"
{rows} -
{when}{what}{who}{detail}
"#, + "#, when = t(lang, Key::WhenCol), what = t(lang, Key::WhatCol), who = t(lang, Key::WhoCol), @@ -931,7 +931,8 @@ const LOG_FIT_SCRIPT: &str = r#""#; diff --git a/style/main.scss b/style/main.scss index 9c8dd86..2da5bc3 100644 --- a/style/main.scss +++ b/style/main.scss @@ -902,6 +902,31 @@ a.wordmark-home { } } +// The logs page never outgrows the window, whatever the fit script managed: +// when the script's page size is right the table ends where the foot sits, +// and when it is not (script off, a stale cookie, a mid-session resize) the +// card caps at the room below the bar and the table scrolls inside itself +// instead of pushing rows past the fold. Scoped by `:has(.log-list)` so the +// other sections keep the page's natural scroll. +body:has(.log-list) { + height: 100vh; + height: 100dvh; + overflow: hidden; + + .admin-shell { height: 100%; } + + .admin-column { height: 100%; } + + // The card is a flex column that may shrink below its content; the wrap is + // the piece that gives, taking the scroll the page would have owned. + .admin-card:has(.log-list) { min-height: 0; } +} + +.log-list-wrap { + min-height: 0; + overflow-y: auto; +} + .logs-foot { display: flex; align-items: center; @@ -984,8 +1009,10 @@ a.wordmark-home { } // The role picker: same field skin as the inputs, just narrower — izlek's - // invite row uses a select here too, not a checkbox. - .admin-role { + // invite row uses a select here too, not a checkbox. `select`-scoped so the + // enhancement's trigger button (which wears the same classes) keeps only + // its own ::after caret instead of doubling this one. + select.admin-role { flex: 0 0 auto; width: auto; padding: 0 28px 0 12px; @@ -1140,6 +1167,11 @@ input[type="checkbox"] { accent-color: var(--accent); } .dd-native { display: none; } +.admin-invite .dd-trigger { + flex: 0 0 auto; + width: auto; +} + .dd-trigger { display: flex; align-items: center;