mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 11:24:00 +00:00
fix(search): keep a missed location query in the field so it can be corrected (#1420)
A location search that found nothing or failed now keeps its query, the open field and focus (text selected), and shows a persistent role=alert message under the search row instead of a toast. Typing, a new search or closing the emptied field clears it. HAL-727.
This commit is contained in:
1 parent
3d9f153bc0
commit
6152f9f311
17 files changed
+207
-10
No files matched your search
@@ -298,3 +298,20 @@
|
||||
#location-search.searching {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.location-search-error {
|
||||
/* Its own line under the search row, which clips overflow in the dock. */
|
||||
margin: 6px 0 0;
|
||||
padding: 6px 10px;
|
||||
border: 1px solid rgba(255, 99, 99, 0.45);
|
||||
border-radius: 6px;
|
||||
background: rgba(30, 8, 10, 0.92);
|
||||
color: #ffb3b3;
|
||||
font-family: var(--font-sans);
|
||||
font-size: 12px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.location-search-error:empty {
|
||||
display: none;
|
||||
}
|
||||
@@ -363,7 +363,8 @@ html:not([lang='en']) #scene-panel .scene-controls .scene-btn {
|
||||
#param-slider-panel.collapsed #param-sliders,
|
||||
#location-bar.collapsed .poi-row-container,
|
||||
#location-bar.collapsed .location-bar-divider,
|
||||
#location-bar.collapsed .location-city-row {
|
||||
#location-bar.collapsed .location-city-row,
|
||||
#location-bar.collapsed .location-search-error {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user