Skip to content

Restore clean-dashboard style - #5535

Merged
fregante merged 3 commits into
mainfrom
fix-clean-dashboard
Mar 23, 2022
Merged

fregante merged 3 commits into
mainfrom
fix-clean-dashboard

Conversation

@fregante

@fregante fregante commented Mar 22, 2022 •

Copy link
Copy Markdown
Member

I'm updating the style a bit:

  • keep the card styles, but move them to each event group rather than around each repo. I think we had this at some point but maybe it wasn't working
  • add some shadows to match the upcoming "For you" style

Test URLs

Screenshot

Screen Shot 6

Organization newsfeed

Screen Shot 9

It matches the native upcoming "For You" style (untouched)

Screen Shot 7

@fregante
fregante marked this pull request as ready for review March 22, 2022 03:04
@fregante fregante added the bug label Mar 22, 2022
@fregante

Copy link
Copy Markdown
Member Author

I'm looking into a hotfix

@fregante

Copy link
Copy Markdown
Member Author

Hotfix confirmed to work:

gif

Screen Shot 10

/* This exact `>` sequence ensures it works on ajaxed-in events */
.rgh-clean-dashboard [role='tabpanel'] [data-repository-hovercards-enabled] > [class] > .body,
/* The organization newsfeed doesn't yet support the new style */
.rgh-clean-dashboard .news > [data-repository-hovercards-enabled] > [class] > .body {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This last selector doesn't apply to the new layout because news has more elements until data-repository-hovercards-enabled

}

/* Drop "box" style for all events */
.rgh-clean-dashboard .news > .f4 + div .Box {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like this specific sequence was made to handle event groups. Do you see any issues with my hotfix on your dashboard?

@cheap-glitch cheap-glitch Mar 22, 2022 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Groups of multiple releases and multiple commits are looking good for me 👍

Edit: maybe we could hide/move the reactions buttons under releases when in a group? They end up taking a lot of vertical space

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

This could be compressed a bit more by dropping some of the <hr> and reducing the vertical spacing before & after the reactions buttons (or dropping them altogether)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Releases are normally hidden by refined GitHub, so can’t do that 😃

@fregante
fregante merged commit e04c499 into main Mar 23, 2022
@fregante
fregante deleted the fix-clean-dashboard branch March 23, 2022 05:18
@fregante

Copy link
Copy Markdown
Member Author

I must say I’m a fan of this new style

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

clean-dashboard doesn't look right on new dashboard

2 participants