Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

徽章可以否增加更多呢? #801

Open
dianso opened this issue Mar 20, 2024 · 0 comments
Open

徽章可以否增加更多呢? #801

dianso opened this issue Mar 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dianso
Copy link

dianso commented Mar 20, 2024

看了下artalk的实现方式,是在数据库user表中有badge_name和badge_color两个字段。

填写对应的,前端是这种结构,但是只能增加一个,要想自定义多个,就需要修改css的方式,通过atk-item atk-nick定位到用户名,然后给对应的加,有些不方便。

<span class="atk-badge" style="background-color: rgb(85, 123, 41);">热心</span>

能否新增一个表badge,里面可以自定义名称和颜色,这样只需在用户表那显示badge id即可。

user表其实也可以考虑增加个颜色

@qwqcode qwqcode added the enhancement New feature or request label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants