1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-21 14:19:39 +02:00

Minor improvements to categories & changelog pages (#1274)

* ui: change category badge border color

* ui/ux: use author's name in changelog

* ui: badge border 25% -> 30%
This commit is contained in:
Arsen Shkrumelyak 2024-10-10 21:00:35 +01:00 committed by GitHub
parent a20809eee3
commit 77fc5caecf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View file

@ -47,6 +47,8 @@ class Provider::Github
if release
{
avatar: release.author.avatar_url,
# this is the username, it would be nice to get the full name
username: release.author.login,
name: release.name,
published_at: release.published_at,
body: Octokit.markdown(release.body, mode: "gfm", context: repo)

View file

@ -2,9 +2,10 @@
<% category ||= null_category %>
<div>
<span class="flex items-center gap-1 text-sm font-medium rounded-full px-1.5 py-1 border border-alpha-black-25"
<span class="flex items-center gap-1 text-sm font-medium rounded-full px-1.5 py-1 border"
style="
background-color: color-mix(in srgb, <%= category.color %> 5%, white);
border-color: color-mix(in srgb, <%= category.color %> 30%, white);
color: <%= category.color %>;">
<%= category.name %>
</span>

View file

@ -12,7 +12,7 @@
<%= image_tag @release_notes[:avatar], class: "rounded-full w-full h-full object-cover" %>
</div>
<div>
<div class="text-gray-900 font-medium text-sm"><%= @release_notes[:name] %></div>
<a class="text-gray-900 font-medium text-sm" href="https://github.com/<%= @release_notes[:username] %>"><%= "@#{@release_notes[:username]}" %></a>
<div class="text-gray-500 text-sm"><%= @release_notes[:published_at].strftime("%B %d, %Y") %></div>
</div>
</div>