Skip to content

web: align search-result flags (city before country flag)#25

Merged
dotwaffle merged 2 commits into
mainfrom
search-result-flag-align
Jun 8, 2026
Merged

web: align search-result flags (city before country flag)#25
dotwaffle merged 2 commits into
mainfrom
search-result-flag-align

Conversation

@dotwaffle

Copy link
Copy Markdown
Owner

Summary

In search results the country flag was rendered before the city. Because the metadata block is flush-right, the city (rightmost element) right-aligned while the flag floated at a city-width-dependent position, so flags didn't line up down the list.

Render the city first, flag last. The fixed-width flag becomes the rightmost element, so flags align on the right edge across all rows (network rows' AS… align to the same edge). One-line template reorder in the shared SearchRow component, so it fixes both the grouped quick-search and the per-type "view all" page.

Rolls v1.20.2.

Verification

go build, go test -race ./... (web), go vet, golangci-lint run pass; go generate ./... drift-clean. Render check confirms the metadata order is now [city] [flag].

🤖 Generated with Claude Code

dotwaffle and others added 2 commits June 8, 2026 12:41
The search result location rendered the country flag first, then the
city. Because the metadata block is flush-right, the city (the rightmost
element) right-aligned while the flag floated at a position determined
by the city text width, so flags did not line up down the result list.

Render the city first and the flag last. The fixed-width flag is now the
rightmost element, so flags align on the right edge across all rows, and
network rows' "ASxxxx" aligns to the same edge.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Capture the search-result city-before-flag ordering change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Code Metrics Report

Coverage Test Execution Time
80.9% 2m22s

Reported by octocov

@dotwaffle dotwaffle merged commit 84d0dd7 into main Jun 8, 2026
2 checks passed
@dotwaffle dotwaffle deleted the search-result-flag-align branch June 8, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant