Repository navigation
Makes commit summary window expandable - #1080
Conversation
@donokuda , I tried this out yesterday, but the result is still to place the icon on a separate line. Note that this image is not using the |
|
Great start @iAmWillShepherd, a few notes. It seems like the expand button is showing even if there's no expanded description available It also seems like the expand/collapse button is visible even when the commit description fits within the container, ideally it would only show when the container overflows. I suspect we'll want to implement this in React by checking if the scrollHeight is greater than the height of the container. Finally I think a commit description which overflows should still be scrollable, you shouldn't have to expand to read it all. |
I actually prefer if it's always visible when there is text in the commit description. If I'm a user and I see icons appearing and disappearing based on the size of my window, I would be curious. |
I have no preference here. When @donokuda and I talked about it yesterday, I came away thinking to have no scroll was preferred since we provide a way to expand the content. |
Subjective feels, but I'm not super keen on having the collapsed view be scrollable mostly because I don't find the experience of scrolling through three lines at a time pleasurable. I'm also not a big fan of seeing the scrollbar in such a small space.
I'm leaning towards @niik with showing the icon only if the commit description overflows, but I'm open to trying out how it works currently and evaluating it afterwards. |
This will let us detect when it overflows more reliably
|
This seems to be ready with @niik's code and master merged. 💯 |
joshaber
left a comment
There was a problem hiding this comment.
Seems legit 👍 Nice collaboration 🤘




This PR fixes issue #519
commit-summary-descriptionRichText componentcommit-summary-description-expanded