diff --git a/crates/im-web/assets/main.css b/crates/im-web/assets/main.css
index e09d42f..96d820e 100644
--- a/crates/im-web/assets/main.css
+++ b/crates/im-web/assets/main.css
@@ -867,7 +867,6 @@ a.wordmark-home {
display: flex;
flex-direction: column;
gap: 16px;
- overflow-x: auto;
}
.logs-filters {
@@ -895,8 +894,9 @@ body:has(.log-list) .admin-card:has(.log-list) {
min-height: 0;
}
-.log-list-wrap {
+.admin-table-wrap {
min-height: 0;
+ overflow-x: auto;
overflow-y: auto;
}
@@ -973,15 +973,19 @@ body:has(.log-list) .admin-card:has(.log-list) {
.admin-invite {
display: flex;
+ flex-wrap: wrap;
gap: 8px;
align-items: stretch;
--control-h: 36px;
}
.admin-invite .auth-input {
- flex: 1;
height: var(--control-h);
box-sizing: border-box;
}
+.admin-invite input.auth-input {
+ flex: 1;
+ min-width: 220px;
+}
.admin-invite select.admin-role {
flex: 0 0 auto;
width: auto;
@@ -1120,9 +1124,6 @@ input[type=checkbox] {
.admin-shell {
padding: 16px 12px 32px;
}
- .admin-invite {
- flex-wrap: wrap;
- }
}
.dd-native {
display: none;
diff --git a/crates/im-web/src/admin.rs b/crates/im-web/src/admin.rs
index e7a308e..95ebb79 100644
--- a/crates/im-web/src/admin.rs
+++ b/crates/im-web/src/admin.rs
@@ -249,9 +249,9 @@ fn sessions_row(
}
format!(
concat!(
- r#"
"#,
+ r#""#,
r#"| {device} | {address} | {signed_in} | {last_seen} | | "#,
- r#"
{rows}
"#
+ r#"
{rows}
"#
),
device = t(lang, Key::DeviceLabel),
address = t(lang, Key::AddressLabel),
@@ -377,10 +377,12 @@ async fn users_section(
r#""#, t(lang, Key::LogsEmpty))
} else {
format!(
- r#"
+ r#"
| {when} | {what} | {who} | {detail} |
{rows}
"#,
diff --git a/style/main.scss b/style/main.scss
index 2da5bc3..b105cbe 100644
--- a/style/main.scss
+++ b/style/main.scss
@@ -884,9 +884,6 @@ a.wordmark-home {
display: flex;
flex-direction: column;
gap: 16px;
- // Logs/users tables are wider than a phone; the card scrolls sideways
- // instead of pushing the whole page out.
- overflow-x: auto;
}
// The logs filter row: five small fields in one wrapping line; a page turn's
@@ -922,8 +919,13 @@ body:has(.log-list) {
.admin-card:has(.log-list) { min-height: 0; }
}
-.log-list-wrap {
+// Every admin table rides a wrapper that scrolls it sideways itself, so the
+// card never does and a section's heading and filters stay put. min-height:
+// 0 is what lets the logs fit shrink the wrap below its content, so the
+// vertical scroll also stays inside it instead of reaching the page.
+.admin-table-wrap {
min-height: 0;
+ overflow-x: auto;
overflow-y: auto;
}
@@ -996,18 +998,27 @@ body:has(.log-list) {
.admin-invite {
display: flex;
+ flex-wrap: wrap;
gap: 8px;
align-items: stretch;
- // One control height for the whole row — email, role and Invite all stand
- // on the same line, the way izlek's member-invite row does.
+ // One control height for the whole row — email, role and Invite stand on
+ // the same line while there is room, the way izlek's member-invite row
+ // does; on a phone the email drops to its own line instead.
--control-h: 36px;
.auth-input {
- flex: 1;
height: var(--control-h);
box-sizing: border-box;
}
+ // The email field keeps a floor wide enough to read the placeholder in;
+ // when the row cannot fit that floor, it wraps. The role select shares
+ // the input skin but not the floor, so this stays input-scoped.
+ input.auth-input {
+ flex: 1;
+ min-width: 220px;
+ }
+
// The role picker: same field skin as the inputs, just narrower — izlek's
// 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
@@ -1158,7 +1169,6 @@ input[type="checkbox"] { accent-color: var(--accent); }
@media (max-width: 720px) {
.admin-shell { padding: 16px 12px 32px; }
- .admin-invite { flex-wrap: wrap; }
}
// --- Themed dropdown (izlek's dropdown, on im's tokens) --------------------