#Fix discord's new role icons in the
1 messages ยท Page 1 of 1 (latest)
I made it use [class^=role] it shouldn't have unintended consequences as i thought before since the query is so specific
screenshot?
check post
just added them
the comparison is using 14px
am i stupid, i dont see any issues
they were not centered and small
other example of before
Ohh you mean the emoji okay
yeah
it looked pretty off
weird for some reason it still doesnt match sometimes when i use [class$=role]
im gonna leave it at what it was before then since that works
there was that one tool anyway to update all the direct classname matches when they get updated
Yeah no I see it ๐ญ
omg i didnt see it before and didnt want to use it untill i noticed it a week later
yup
to fix for the latest Discord update, replace
af3987915705da59-role
with
role_af3987
If you want to save a couple lines, you can use nesting, instead of using the same selector two times:
.role_af3987 span:nth-of-type(2) {
display: flex;
& img:first-of-type {
width: 14px;
height: 14px;
}
}
Sorry if the indentation is bad - I'm writing it on my phone ๐ญ
[class^=roleTag] {
> [class^=role] {
gap: 6px;
padding: 0 8px;
> [class^=roleCircle] { margin: unset; }
> span > [class^=roleIcon] {
height: 14px;
width: 14px;
margin-inline-start: unset;
margin-top: -2px;
}
}
fixed spacing issues for role color circle and image icon without needing to change class name each update (i think)
also it uses gap and padding i thought were good looking for me so u can remove those if u dont want them
thank you for your contribution!
its missing one more closing bracket i think