feat(FN-956): improve remote edit button usability on mobile and desktop

- Increase remote edit icon size from 12px to 16px for better tap/click targets
- Add mobile-specific CSS rules to show/hide remote edit buttons based on screen size
- Add comprehensive test coverage for mobile-friendly edit button visibility
This commit is contained in:
gsxdsm
2026-04-05 11:07:28 -07:00
parent ec2dc79569
commit 56dc5e8d3e
3 changed files with 51 additions and 4 deletions

View File

@@ -1951,12 +1951,12 @@ function RemotesPanel({
<div className="gm-remote-name-row">
<span className="gm-remote-name">{remote.name}</span>
<button
className="btn btn-icon"
className="btn btn-icon gm-remote-edit-btn"
onClick={(e) => { e.stopPropagation(); startEditingName(remote); }}
disabled={remoteActionLoading !== null}
title="Edit remote name"
>
<Pencil size={12} color="var(--text-muted)" />
<Pencil size={16} />
</button>
</div>
)}
@@ -2005,12 +2005,12 @@ function RemotesPanel({
{remote.pushUrl || remote.fetchUrl}
</span>
<button
className="btn btn-icon"
className="btn btn-icon gm-remote-edit-btn"
onClick={(e) => { e.stopPropagation(); startEditingUrl(remote); }}
disabled={remoteActionLoading !== null}
title="Edit remote URL"
>
<Pencil size={12} color="var(--text-muted)" />
<Pencil size={16} />
</button>
</div>
)}