feat(regions): label the map pins and link them to the region list
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 11m17s
ci / test (pull_request) Successful in 12m34s
ci / build (pull_request) Canceled after 4m21s
ci / image (pull_request) Canceled after 0s
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 11m17s
ci / test (pull_request) Successful in 12m34s
ci / build (pull_request) Canceled after 4m21s
ci / image (pull_request) Canceled after 0s
Pins carry the region's name, turn dark when the region is selected and show a green dot while a checker of the region is live. Hovering a pin highlights its row in the list and the other way round, and a region ticked in the list pans into view. Scrolling the page no longer zooms the map, and the attribution stays compact. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
3562f8224e
commit
6c246b145f
6 files changed
+92
-31
No files matched your search
@@ -5554,7 +5554,7 @@ func MonitorEditor(p Page, me Me, f MonitorForm) templ.Component {
|
||||
return templ_7745c5c3_Err
|
||||
}
|
||||
for _, r := range f.Regions {
|
||||
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 451, "<label class=\"mb-1.5 flex items-center gap-2 text-sm\"><input type=\"checkbox\" name=\"regions\" value=\"")
|
||||
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 451, "<label class=\"-mx-2 mb-0.5 flex items-center gap-2 px-2 py-1 text-sm\"><input type=\"checkbox\" name=\"regions\" value=\"")
|
||||
if templ_7745c5c3_Err != nil {
|
||||
return templ_7745c5c3_Err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user