diff --git a/crates/forge-web/src/pages/admin_backups.rs b/crates/forge-web/src/pages/admin_backups.rs index 719b484..d188b43 100644 --- a/crates/forge-web/src/pages/admin_backups.rs +++ b/crates/forge-web/src/pages/admin_backups.rs @@ -182,7 +182,7 @@ async fn backups_view(

(g::t(lang, K::NoRunsYet))

} else {
- +
@@ -196,12 +196,12 @@ async fn backups_view( for row in rows.into_iter() { - - - - - - + + + + +
(g::t(lang, K::TableKind))
(row.kind.as_str())(row.trigger.as_str())(row.started.as_str())(row.duration.as_str())(row.size.as_str()) + (row.kind.as_str())(row.trigger.as_str())(row.started.as_str())(row.duration.as_str())(row.size.as_str()) (row.status.as_str()) if !row.detail.is_empty() {
(row.detail.as_str())
diff --git a/crates/forge-web/src/pages/admin_mail.rs b/crates/forge-web/src/pages/admin_mail.rs index 86fdc02..1f02c25 100644 --- a/crates/forge-web/src/pages/admin_mail.rs +++ b/crates/forge-web/src/pages/admin_mail.rs @@ -299,7 +299,7 @@ async fn mail_view(

(g::t(lang, K::MailNothingMatches))

} else {
- +
@@ -316,14 +316,14 @@ async fn mail_view( for row in queue.rows.into_iter() { - - - - - - - - + + + + + + + +
(g::t(lang, K::TableQueued))
(row.created.as_str())(row.to.as_str())(row.kind)(row.subject.as_str())(row.state)(row.attempts)(row.sent.as_str())(row.error.as_str())(row.created.as_str())(row.to.as_str())(row.kind)(row.subject.as_str())(row.state)(row.attempts)(row.sent.as_str())(row.error.as_str()) if row.failed {
diff --git a/crates/forge-web/src/pages/admin_replication.rs b/crates/forge-web/src/pages/admin_replication.rs index 2b2b43c..836daba 100644 --- a/crates/forge-web/src/pages/admin_replication.rs +++ b/crates/forge-web/src/pages/admin_replication.rs @@ -207,7 +207,7 @@ async fn replication_view(

(g::t(lang, K::NoReposYet))

} else {
- +
@@ -219,10 +219,10 @@ async fn replication_view( for row in data.repos.into_iter() { - - - - + + + + } diff --git a/crates/forge-web/src/pages/admin_users.rs b/crates/forge-web/src/pages/admin_users.rs index 8f411ea..4492963 100644 --- a/crates/forge-web/src/pages/admin_users.rs +++ b/crates/forge-web/src/pages/admin_users.rs @@ -69,23 +69,23 @@ async fn users_view(
-
(g::t(lang, K::TableRepo))
(row.name.as_str())(row.health)(row.last_ok.as_str())(row.error.as_str())(row.name.as_str())(row.health)(row.last_ok.as_str())(row.error.as_str())
+
for user in users.into_iter() { - - - - + + +
(i18n::t(lang, Key::Username))(i18n::t(lang, Key::Email))(g::t(lang, K::Role))(i18n::t(lang, Key::Created))
+ if user.is_org() || is_ghost(&user) { (user.username.clone()) } else { (user.username.clone()) } (user.email.clone().unwrap_or_default())(if user.is_org() { g::t(lang, K::RoleOrganization) } else if user.is_admin { g::t(lang, K::RoleAdmin) } else { g::t(lang, K::RoleUser) })(format_in_tz(stamp_unix(&user.created_at), tz))(user.email.clone().unwrap_or_default())(if user.is_org() { g::t(lang, K::RoleOrganization) } else if user.is_admin { g::t(lang, K::RoleAdmin) } else { g::t(lang, K::RoleUser) })(format_in_tz(stamp_unix(&user.created_at), tz)) if user.id != viewer_id && !is_ghost(&user) { (i18n::t(lang, Key::Delete)) diff --git a/crates/forge-web/src/pages/audit_log.rs b/crates/forge-web/src/pages/audit_log.rs index d6b894a..dc7076d 100644 --- a/crates/forge-web/src/pages/audit_log.rs +++ b/crates/forge-web/src/pages/audit_log.rs @@ -97,7 +97,7 @@ async fn audit_table(lang: Lang, rows: Vec, show_actor: bool) -> Result

(g::t(lang, K::NoEntries))

} else {
- +
@@ -113,14 +113,14 @@ async fn audit_table(lang: Lang, rows: Vec, show_actor: bool) -> Result for row in rows.into_iter() { - + if show_actor { - + } - - - - + + + + } diff --git a/crates/forge-web/src/pages/commit.rs b/crates/forge-web/src/pages/commit.rs index 143bd8f..59a51d6 100644 --- a/crates/forge-web/src/pages/commit.rs +++ b/crates/forge-web/src/pages/commit.rs @@ -169,6 +169,10 @@ async fn commit_page(cx: &Cx) -> Result { .get(&full_oid) .map(|badge| SigBadgeView::from_badge(badge, lang)); + let (copy, copied, copy_failed) = match lang { + i18n::Lang::En => ("Copy", "Copied", "Failed"), + i18n::Lang::Tr => ("Kopyala", "Kopyalandı", "Başarısız"), + }; let mut header = ctx.head(state, "commits").await?; header.live = ref_live::live_url(&owner_name, &repo_name); Ok(view! { @@ -177,8 +181,11 @@ async fn commit_page(cx: &Cx) -> Result {

(summary.as_str())

(title.as_str())

-

- (full_oid.as_str()) +

+ + (full_oid.as_str()) + + if let Some(badge) = sig { (badge.label) } diff --git a/style/_repo.scss b/style/_repo.scss index 97db07b..a971715 100644 --- a/style/_repo.scss +++ b/style/_repo.scss @@ -863,6 +863,30 @@ } } +// The full commit hash in its copy box: one line, truncated with an ellipsis when the screen is +// narrow, so the hash never breaks in the middle. The Copy button always copies the whole hash. +.commit-info .commit-full-oid { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 10px; + min-width: 0; + + .copy-box { + flex: 1 1 auto; + min-width: 0; + margin: 0; + align-items: center; + } + + code { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + overflow-wrap: normal; + } +} + // Settings forms: every field in a form shares the form width (urls and secrets no longer stop short). .mirror-form, .webhook-form { diff --git a/style/main.scss b/style/main.scss index 9c82479..27ccf2c 100644 --- a/style/main.scss +++ b/style/main.scss @@ -4534,7 +4534,8 @@ $ansi-colours: ( } } -// Phone: each queue row is a card, every cell a label and value row (the runners' layout). +// Phone: each row of a queue-table (the merge queue and the admin tables) is a card, every cell a +// label and value row (the runners' layout). Cells without data-label sit as they are. @media (max-width: 720px) { .queue-table { display: block; @@ -4568,6 +4569,7 @@ $ansi-colours: ( gap: 12px; min-height: 36px; min-width: 0; + overflow-wrap: anywhere; &::before { content: attr(data-label);

(g::t(lang, K::TableWhen))
(row.when.as_str())(row.when.as_str())(row.actor.as_str())(row.actor.as_str())(row.action.as_str())(row.target.as_str())(row.ip.as_str())(row.details.as_str())(row.action.as_str())(row.target.as_str())(row.ip.as_str())(row.details.as_str())