Brauche Hilfe, bitte\n\nIch habe Bier als Like-Icon platziert\n\n
\n
\n\n\nund habe die Farbe mit einer Komponente geändert\n\ncommon css\n\n\n
\n.discourse-reactions-actions.has-reacted.has-used-main-reaction .discourse-reactions-reaction-button .reaction-button .d-icon {\n color: #ffd000;\n}\n\n\n\nvergangene Biere, die ich gegeben habe, alles ist gut\n
\n\nwelche ich bekomme, gut, ich bin glücklich\n
\n\n\naber nichts zeigt an, um eins zu geben\n\n
\n\nKann mir jemand helfen, damit das Geben eines Bieres angezeigt wird?\n\nDanke
Sie können sich hier eine Lösung ansehen:
The icon works if you can’t like it anymore, but not when you can.
[image]
Looking at the code, when you liked already:
When you did not like yet:
It expects a far— version, which doesn’t seem to exist for beer.
A quick solution in your case is to use the API to replace the far-beer, for example:
<script type="text/discourse-plugin" version="0.8">
api.replaceIcon("far-beer", "beer");
</script>
I don’t know if a new setting should be introduced here or add some logic to …
3 „Gefällt mir“
Ausgezeichnet, ich habe Ihr Skript in eine Komponente im Head eingefügt, an der ich gerade für die Bierfarbe gearbeitet habe
und es hat funktioniert, danke!
aber es scheint, dass das, was ich für die Bierfarbe getan habe, andere Probleme verursacht hat
Look at the image links and how they differ from the preview window
[image]
and the results once posted are the correct images but stretched
[image]
I installed all these yesterday, activated signatures , reaction and encryption, have another thread where I am trying to get svg for like working in case its related
- git clone https://github.com/discourse/discourse-reactions
- git clone https://github.com/discourse/discourse-adplugin
- git clone https://github.com/discourse/discourse-affi…
gibt es hier ein schlechtes Rezept für die Icon-Farbe?
.discourse-reactions-actions.has-reacted.has-used-main-reaction .discourse-reactions-reaction-button .reaction-button .d-icon { color: #ffd000;}