stops: move the near-me result panel inside its own tab panel
The result container had been left outside #stops-near-wrap and an earlier selout removed the wrong copy, so on /stops the map and ranked stops were rendered at the bottom of the page instead of inside the third tab, unlike the mock at :8090/ui/#/stops. Now the DOM matches the mock exactly: three tabs, three panels, the location button and its result inside the near panel, and only Search/Clear/Back in the toolbar. Compared side by side against :8090/ui/#/stops - tab order, panel visibility, active state, list visibility on the near tab, geolocation result (map plus 8 ranked stops), button re-enable and repeat press all identical.
This commit is contained in:
1 parent
f754cffe58
commit
7652ddaae5
1 file changed
+2
-2
@@ -67,7 +67,8 @@ export default function StopsView() {
|
||||
<p className="mu-search-hint" data-i18n="stops.nearHint">
|
||||
ระบบจะขอตำแหน่งจากเครื่อง แล้วคำนวณระยะจากพิกัดป้าย/ศาลารถ เรียงจากใกล้ไปไกล
|
||||
</p>
|
||||
</div>
|
||||
<div id="near-me-result" className="mu-near-wrap" hidden />
|
||||
</div>
|
||||
<div className="mu-toolbar-actions">
|
||||
<button type="button" className="mu-btn primary" id="stops-search-btn"><span data-i18n="common.search">ค้นหา</span></button>
|
||||
<button type="button" className="mu-btn ghost" id="stops-reset-btn"><span data-i18n="stops.reset">ล้างค่า</span></button>
|
||||
@@ -75,7 +76,6 @@ export default function StopsView() {
|
||||
</div>
|
||||
<p className="mu-toolbar-count" id="stops-count" hidden />
|
||||
</form>
|
||||
<div id="near-me-result" className="mu-near-wrap" hidden />
|
||||
<ul className="mu-stop-grid" id="stops-list" />
|
||||
<div className="mu-show-more">
|
||||
<button type="button" className="mu-btn outline" id="stops-show-all" data-i18n="stops.showAll" hidden>แสดงป้ายทั้งหมด</button>
|
||||
|
||||
Reference in new issue
Block a user