-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix the title being covered #3976
base: master
Are you sure you want to change the base?
Conversation
Hi @Allsochen, Thank you for sharing another PR! Could you please share a bit more context about this PR? I've worked a lot on #814 in the past. I couldn't find a solution. It seems that you just change the font size here, for the small size. Is this a quick-win perhaps? If you have any input on #814, i would be very interested. Thank you! |
I didn't notice the problem with #184 before, but the latest code I submitted has fixed the problem. |
@@ -37,6 +41,24 @@ class ThumbnailTitleView: BaseLabel { | |||
return .byTruncatingHead | |||
} | |||
|
|||
override func draw(_ dirtyRect: NSRect) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please share why this override is necessary? What does it change compared to the native implementation? We should probably add a comment to clarify this, so that reads can understand this change better 👍
@@ -60,7 +82,11 @@ class ThumbnailTitleView: BaseLabel { | |||
return ceil(textSize.width) | |||
} | |||
|
|||
static func extraLineSpacing(for fontSize: CGFloat) -> CGFloat { | |||
return fontSize * 0.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I imagine that 20% margin comes from your testing? Less than 20% didn't work in your tests?
Thank you
fix the title being covered.
Before fixed:
After fixed: