You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We didn't have time to mock this but our thoughts is that we'll show the first five or so rows of a long commit message and then add a "Read more..." or "Expand" link button at the end if it still overflows. Clicking on that would expand the commit header to take over the diff and file list, essentially entering into a "zen-mode"-ish view for reading long messages.
Not quite, we did discuss this yesterday. Our current thinking is that we'll keep it the way it is now (ie a max-height of ~3 rows and then scrolling after that) but we'll also add an explicit expand/collapse button that allows the commit message to take over the entire view.
We did some mocks for this, one of us will update this issue once we start breaking apart the sketch file
So this is @donokuda's and my current thinking. If the commit summary extends beyond ~3-4 lines we'll make it scrollable and show the expand button which, when clicked, makes the commit description take over the entire bottom part of the view.
@iAmWillShepherd Nope. I'm thinking of the expanded state as something that's on top of the diffs and you'll have to collapse it to go back to reading file diffs.
Activity
donokuda commentedon Oct 12, 2016
@shiftkey Thanks for taking a look at this in #521. @niik and I briefly chatted about this in my UI polish PR.
I think the approach that makes sense is putting the description as the first item before the list of changed files. Pretty much like how GHD does it:
@niik and I will be discussing all the designy things this week so we'll keep you updated if this changes.
shiftkey commentedon Oct 12, 2016
@donokuda @niik cool, I'll put this aside for now
shiftkey commentedon Oct 19, 2016
Some discussion on this over in #549 (comment)
joshaber commentedon Jan 19, 2017
@donokuda @niik is the above ☝️ still accurate?
niik commentedon Jan 19, 2017
Not quite, we did discuss this yesterday. Our current thinking is that we'll keep it the way it is now (ie a max-height of ~3 rows and then scrolling after that) but we'll also add an explicit expand/collapse button that allows the commit message to take over the entire view.
We did some mocks for this, one of us will update this issue once we start breaking apart the sketch file
niik commentedon Jan 19, 2017
So this is @donokuda's and my current thinking. If the commit summary extends beyond ~3-4 lines we'll make it scrollable and show the expand button which, when clicked, makes the commit description take over the entire bottom part of the view.
iAmWillShepherd commentedon Mar 1, 2017
Seems that the summary is already scrollable, it just needs a button to make it take up the entire space.
iAmWillShepherd commentedon Mar 27, 2017
@niik where can I find that expand collapse icon you are using in your mocks?
donokuda commentedon Mar 27, 2017
@iAmWillShepherd I think
<Octicon symbol={OcticonSymbol.fold} />and<Octicon symbol={OcticonSymbol.unfold} />should give you the correct icons.iAmWillShepherd commentedon Mar 27, 2017
@donokuda Much appreciated!
iAmWillShepherd commentedon Mar 29, 2017
Do we want to be able to scroll down to see the diff when the commit description is expanded?
donokuda commentedon Mar 29, 2017
@iAmWillShepherd Nope. I'm thinking of the expanded state as something that's on top of the diffs and you'll have to collapse it to go back to reading file diffs.
iAmWillShepherd commentedon Mar 29, 2017
Ok, that's actually what I had in mind. I am encountering a problem with scrolling though.