Break long values on the webhook page and event log at phone width (closes #391)
check / check (push) Successful in 3m38s
check / check (push) Successful in 3m38s
A name, ID or content type with no place to break ran past its row and was cut off by the card at 390 pixels, and a long webhook name made the webhook page scroll sideways. The elements holding such values now carry wrap-anywhere, so a value breaks only where it must; controls, statuses and times never do, so a row too wide for a phone still runs past the edge. The event log's title row wraps like the webhook page's. The browser test gains a 390-pixel check of both pages: neither scrolls sideways and nothing shown runs past the page's or its card's edge. Its seeded webhook name and newer event's content type are long enough to fail without the change. Model: opus-5-5
This commit is contained in:
@@ -17,14 +17,15 @@ import (
|
||||
|
||||
// arrivedAt is how a page names the entrypoint an event arrived at.
|
||||
func arrivedAt(name string) string {
|
||||
return `Arrived at <span class="text-gray-900">` + name + `</span>`
|
||||
return `Arrived at <span class="text-gray-900 wrap-anywhere">` + name +
|
||||
`</span>`
|
||||
}
|
||||
|
||||
// copiedRequestArrivedAt is how a page names, for a resubmitted copy,
|
||||
// the entrypoint the request it copies arrived at.
|
||||
func copiedRequestArrivedAt(name string) string {
|
||||
return `The request it copies arrived at <span class="text-gray-900">` +
|
||||
name + `</span>`
|
||||
return `The request it copies arrived at ` +
|
||||
`<span class="text-gray-900 wrap-anywhere">` + name + `</span>`
|
||||
}
|
||||
|
||||
// headerBox is how a page shows an event's request header lines: as
|
||||
|
||||
Reference in New Issue
Block a user