sindresorhus/refined-github

Show latest commit message on project page #3277

Aaron1011 posted onGitHub

The most recent Github update hides the latest commit message on a project page. Instead, it only shows the author, commit date, and SHA:

<image src="https://imgur.com/wDLHkZn.png">

This seems like a misfeature to me - there's always enough space to display at least part of the commit message. Seeing a commit message by default is much more useful than a SHA - I have no reason to want to copy a SHA until I know what the commit does.

I think it would be useful to hide the SHA and use the extra space to display as much of the commit message as will fit.


Maybe we can just expand the commit message by default.

There is a problem that the commit message can be lengthy, like Linux kernel:

image

posted by kidonng almost 5 years ago

@kidonng: That's what I ended up implementing: https://github.com/sindresorhus/refined-github/pull/3278

posted by Aaron1011 almost 5 years ago

That's not much help for repositories with many top-level files (e.g. git), though it's an interesting idea.

posted by sersorrel almost 5 years ago

I agree with @sersorrel, it's hard to discover in my opinion. Can we always show the first line of the commit message (and user click expand to see the rest of the message and description)? (https://github.com/sindresorhus/refined-github/pull/3278#issuecomment-649488947)

posted by kidonng almost 5 years ago

This doesn't look great

<img width="920" alt="" src="https://user-images.githubusercontent.com/1402241/86413641-02826a00-bcc2-11ea-8eaa-e12c96b5e444.png">

But messing with negative margins and text-gray might fix it:

<img width="911" alt="" src="https://user-images.githubusercontent.com/1402241/86413651-09a97800-bcc2-11ea-9463-1e09bd56c572.png">


  • Can this feature be implemented with CSS only?
  • Would the negative margins cause overlaps?
  • Would this cause the content to jump? i.e. is the commit message lazily loaded?

If "yes no no," then this feature could be added.

posted by fregante almost 5 years ago

I realized I want this. PR welcome to fix it as described above: only the commit title + centered on the avatar.

However the centering might have to be inside a media query because in small windows the commit title has to be on a second line:

<img width="706" alt="" src="https://user-images.githubusercontent.com/1402241/86572654-82832b00-bf73-11ea-8301-7f5481b12fd2.png">

posted by fregante over 4 years ago

its comming back image

posted by yakov116 over 4 years ago

They're onto us!!

However that change moves 2 links next to the branch selector, breaking latest-tag-button

posted by fregante over 4 years ago

@fregante Changing the selector from .breadcrumb to .file-navigation .flex-auto works on both layout, but... image

Change it to #branch-select-menu (append it after the branch select button), better but still not ideal:

image

posted by kidonng over 4 years ago

Fund this Issue

$0.00
Funded

Pull requests