Browse Source

Make commit message inputs monospaced

- Make input and textarea when writing a commit message monospaced
- Limit input to about 50 chars so you see when you are close to the warning
- Limint textarea to about 80 chars and turn off wrapping.

This simulates the behaviour of Vim when writing a Git commit message.
Unfortunately implementing autowrapping like Vim is harder
and quite more opinionated.
master
Haralan Dobrev 9 years ago
parent
commit
9e120a79a7
  1. 13
      extension/content.css

13
extension/content.css

@ -295,3 +295,16 @@ svg.octicon.octicon-star.dashboard-event-icon {
.diff-toolbar-filename { .diff-toolbar-filename {
font-weight: bold; font-weight: bold;
} }
/* limit width of commit title and description inputs to 50/80 chars */
#commit-summary-input, #commit-description-textarea {
font-family: monospace !important;
}
#commit-summary-input {
width: 410px !important;
}
#commit-description-textarea {
width: 645px !important;
}

Loading…
Cancel
Save