Skip to content

Commit ffe996f

Browse files
committed
web: fix formatting drift on main
1 parent f539a64 commit ffe996f

2 files changed

Lines changed: 10 additions & 15 deletions

File tree

apps/web/src/components/CodeViewerPanel.tsx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -350,19 +350,16 @@ export const CodeViewerFileContent = memo(function CodeViewerFileContent(
350350
void performSave("manual");
351351
}, [performSave]);
352352

353-
const saveButtonState = isSaving || isSavingManually
354-
? "saving"
355-
: tab?.isDirty
356-
? "dirty"
357-
: showSavedConfirmation
358-
? "saved"
359-
: "clean";
353+
const saveButtonState =
354+
isSaving || isSavingManually
355+
? "saving"
356+
: tab?.isDirty
357+
? "dirty"
358+
: showSavedConfirmation
359+
? "saved"
360+
: "clean";
360361
const saveButtonLabel =
361-
saveButtonState === "saving"
362-
? "Saving..."
363-
: saveButtonState === "dirty"
364-
? "Save"
365-
: "Saved";
362+
saveButtonState === "saving" ? "Saving..." : saveButtonState === "dirty" ? "Save" : "Saved";
366363

367364
if (query.isLoading) {
368365
return (

apps/web/src/components/chat/ChatHeader.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,7 @@ export const ChatHeader = memo(function ChatHeader({
214214
onClick={() => openPrLink(threadPr.url)}
215215
>
216216
<GitPullRequestIcon className="size-3.5" />
217-
<span className="max-w-40 truncate">
218-
View PR #{threadPr.number}
219-
</span>
217+
<span className="max-w-40 truncate">View PR #{threadPr.number}</span>
220218
<ExternalLinkIcon className="size-3" />
221219
{primaryPullRequestShortcutLabel ? (
222220
<Kbd className="ml-0.5 hidden sm:inline-flex">

0 commit comments

Comments
 (0)