check page: align share button with the page gutter
The share row sat outside .mu-container, so its right edge was 15px from the viewport while routes/stops pages sit at 43px. Wrapped it in .mu-container — measured rightGap 43 on /check, same as /routes/:id and /stops/:code.
This commit is contained in:
1 parent
29b126b188
commit
187da921f1
1 file changed
+10
-7
@@ -55,13 +55,16 @@ export default function CheckView() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{/* ปุ่มแชร์หน้านี้ — ลิงก์สั้น ใช้ path ปัจจุบัน ไม่ฝังชื่อเว็บ */}
|
{/* ปุ่มแชร์หน้านี้ — ลิงก์สั้น ใช้ path ปัจจุบัน ไม่ฝังชื่อเว็บ
|
||||||
<div className="mu-share-row">
|
ต้องอยู่ใน .mu-container ให้ขอบขวาเท่าหน้าอื่น (routes/stops) */}
|
||||||
<button type="button" className="mu-share-btn" id="share-btn">
|
<div className="mu-container">
|
||||||
<svg className="ic" aria-hidden="true"><use href="#ic-share-2" /></svg>
|
<div className="mu-share-row">
|
||||||
<span data-i18n="share.label">แชร์หน้านี้</span>
|
<button type="button" className="mu-share-btn" id="share-btn">
|
||||||
</button>
|
<svg className="ic" aria-hidden="true"><use href="#ic-share-2" /></svg>
|
||||||
<p className="mu-share-status" id="share-status" aria-live="polite" />
|
<span data-i18n="share.label">แชร์หน้านี้</span>
|
||||||
|
</button>
|
||||||
|
<p className="mu-share-status" id="share-status" aria-live="polite" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in new issue
Block a user