fix: apply notch filename trunaction

This commit is contained in:
Patrick Erichsen 2025-06-09 18:15:28 -07:00
parent 7140451aa3
commit 033ade024e
2 changed files with 4 additions and 6 deletions

View file

@ -51,8 +51,7 @@ export default function AcceptRejectAllButtons({
>
<div className="flex flex-row items-center gap-1">
<XMarkIcon className="text-error h-4 w-4" />
<span>Reject</span>
<span className="xs:inline-block hidden">All</span>
<span className="hidden sm:inline">Reject</span>
</div>
</button>
<ToolTip id="reject-shortcut" />
@ -66,8 +65,7 @@ export default function AcceptRejectAllButtons({
>
<div className="flex flex-row items-center gap-1">
<CheckIcon className="text-success h-4 w-4" />
<span>Accept</span>
<span className="xs:inline-block hidden">All</span>
<span className="hidden sm:inline">Accept</span>
</div>
</button>
<ToolTip id="accept-shortcut" />

View file

@ -28,9 +28,9 @@ export function PendingApplyStatesToolbar({
{Object.entries(applyStatesByFilepath).map(([filepath, states]) => (
<div key={filepath} className="flex justify-between gap-3">
{filepath && (
<span className="bg-badge flex items-center gap-1 rounded px-0.5">
<span className="bg-badge flex min-w-0 max-w-[75%] items-center gap-1 truncate rounded pr-1 text-xs">
<FileIcon filename={filepath} height="18px" width="18px" />
{getUriPathBasename(filepath)}
<span className="truncate">{getUriPathBasename(filepath)}</span>
</span>
)}
<AcceptRejectDiffButtons