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:
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user