Skip to content

Commit

Permalink
[FIX] resolve confusing colors in languages stats by insert a gap (#2…
Browse files Browse the repository at this point in the history
…7704) (#27715)

Backport #27704 by @RightFS

The current language stats are too obsessed with color matching. Similar
colors are always next to each other. It is a bit troublesome to find
the place where the color matching is generated, so just follow the
example of github and add a gap.

## before

<img width="883" alt="image"
src="https://github.com/go-gitea/gitea/assets/12915306/cf54430c-616c-4b37-b561-5a37c20b2d94">

## after

<img width="877" alt="image"
src="https://github.com/go-gitea/gitea/assets/12915306/e518ea36-2b8f-4f11-a867-a58dc393db85">

Co-authored-by: MrDevil <Right.Sun@outlook.com>
  • Loading branch information
GiteaBot and RightFS authored Oct 20, 2023
1 parent 345d70f commit 993178b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web_src/css/repo.css
Original file line number Diff line number Diff line change
Expand Up @@ -2051,6 +2051,7 @@

.repository .repository-summary .segment.language-stats {
display: flex;
gap: 2px;
padding: 0;
height: 10px;
white-space: nowrap;
Expand Down

0 comments on commit 993178b

Please sign in to comment.