Skip to content

Commit d86cdfe

Browse files
committed
Fix filename field hight
1 parent 01dd2f2 commit d86cdfe

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
- [dev] Update Yams from 5.3.1 to 6.0.0.
1616

1717

18+
### Fixes
19+
20+
- [trivial] Fix the layout of the file browser when a filename contains line ending characters.
21+
22+
1823

1924
5.1.6 (716)
2025
--------------------------

CotEditor/Sources/Document Window/File Browser/FileBrowserViewController.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,9 @@ private final class FileBrowserTableCellView: NSTableCellView {
10221022
textField.leadingAnchor.constraint(equalToSystemSpacingAfter: imageView.trailingAnchor, multiplier: 1),
10231023
textFieldTrailingAnchor,
10241024
tagsView.trailingAnchor.constraint(equalTo: self.trailingAnchor, constant: -2),
1025+
1026+
// fix the height for the case when the file name contains line breaks
1027+
textField.heightAnchor.constraint(lessThanOrEqualToConstant: textField.fittingSize.height),
10251028
])
10261029
}
10271030

0 commit comments

Comments
 (0)