Skip to content

Fix suggest-commit-title-limit input field size - #4070

Merged
fregante merged 3 commits into
refined-github:mainfrom
xtianatilano:fix-suggest-commit-title-limit-length
Mar 8, 2021
Merged

fregante merged 3 commits into
refined-github:mainfrom
xtianatilano:fix-suggest-commit-title-limit-length

Conversation

@xtianatilano

@xtianatilano xtianatilano commented Mar 7, 2021 •

Copy link
Copy Markdown
Contributor

Fixes #3998

Test URLs

Any PR for merge + This 72-char title:

123456789 123456789 123456789 123456789 123456789 123456789 123456789 12

Screenshot

Before:
before

After:
suggest-commit-title

@xtianatilano xtianatilano changed the title fix: increase width for merge_title_field to fit 72 characters Fix suggest-commit-title-limit input length Mar 7, 2021
@fregante

fregante commented Mar 7, 2021 •

Copy link
Copy Markdown
Member

In your gif, as you move the cursor from the end to the start, you can see the text shifting by a pixel. This shows that there’s still overflow.

The 72ch is the correct size here and should not change. This is more likely caused by box-sizing: border-box, which should be changed to box-sizing: content-box. Does that fix it?

@xtianatilano

Copy link
Copy Markdown
Contributor Author

Updated.

box-sizing: content-box does fix it, I initially thought that the extra space was kinda too long. 😅

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@yakov116 yakov116 added the bug label Mar 7, 2021

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, actually while it fixes the bug, the final width is longer than 72-chars

gif

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thankfully the fix was easy
gif

@fregante fregante changed the title Fix suggest-commit-title-limit input length Fix suggest-commit-title-limit input field size Mar 8, 2021
@fregante
fregante merged commit 96d8c56 into refined-github:main Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

suggest-commit-title-limit is sized incorrectly, 1-character short

3 participants