Files
gerrit/polygerrit-ui/app/elements/change
Becky Siegel e0c4f2827d Add more commit message conditions
Currently, if a commit message exceeds 72ch and there is space, it still
gets restricted to 72ch.

This is kind of a delicate thing to fix, as the rules are complicated to
get working in all scenarios.  This change adds a few things to
alleviate (too) long commit messages with larger screens.

1. If there are no related changes, don't restrict the width of the
   commit message.
2. Add an additional css media query for large screen sizes and set the
   min width (if there are break points) to a max of 100ch rather than
   72. (this is what the max was before c/106843).

There is a slight problem with jankiness if the commit message ends up
getting/using more width, as it has to wait to know whether the related
changes exist before the style is updated. However, the ways in which
all potential use cases can be addressed are very limited.

Bug: Issue 5706
Change-Id: I6b3efb6cbd71448070db1cac926a6cbde0bc23a2
2017-05-16 09:58:46 -07:00
..
2017-05-12 15:40:21 -07:00
2017-05-15 14:09:57 -07:00
2017-05-15 09:53:08 -07:00