Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/desktop/src/features/commit/WorkingCopyPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1338,6 +1338,7 @@ export function WorkingCopyPanel() {
}}
placeholder={amend ? 'New summary (leave empty to keep current)' : 'Summary'}
aria-label="Commit summary"
autoCapitalize="off"
spellCheck
className={cn(
'h-9 min-w-0 flex-1 bg-transparent pl-3 text-sm font-medium text-foreground outline-none',
Expand Down Expand Up @@ -1386,6 +1387,8 @@ export function WorkingCopyPanel() {
}}
placeholder="What changed and why"
aria-label="Commit description"
autoCapitalize="off"
spellCheck
className={cn(
'min-h-[72px] resize-none rounded-none border-0 bg-transparent px-3 py-2 text-xs leading-relaxed text-foreground shadow-none focus-visible:ring-0 focus-visible:border-0',
commitBoxHeight === null ? 'max-h-[260px]' : 'max-h-[600px] overflow-y-auto',
Expand Down
3 changes: 3 additions & 0 deletions apps/desktop/src/features/inspector/CommitDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ export function CommitDetails({
placeholder="Summary"
aria-label="Commit summary"
rows={1}
autoCapitalize="off"
spellCheck
className="min-h-9 resize-none overflow-hidden rounded-none border-0 bg-transparent px-3 py-2 text-sm font-medium leading-snug text-foreground shadow-none placeholder:font-normal placeholder:text-faint focus-visible:border-0 focus-visible:ring-0"
/>
Expand All @@ -699,6 +700,8 @@ export function CommitDetails({
}}
placeholder="Description"
aria-label="Commit description"
autoCapitalize="off"
spellCheck
rows={Math.min(12, Math.max(3, draftParts.body.split('\n').length + 1))}
style={descHeight === null ? undefined : { height: descHeight }}
className="min-h-[72px] resize-none rounded-none border-0 bg-transparent px-3 py-2 text-xs leading-relaxed text-foreground shadow-none focus-visible:border-0 focus-visible:ring-0"
Expand Down
Loading