about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-07-19 16:08:59 +0200
committerClaire <claire.github-309c@sitedethib.com>2022-07-19 16:08:59 +0200
commit3a516acfc2bc8a80816a02a5b7ffc0efe5744788 (patch)
tree2240ae4a50fe51a48818182d7f3e50d8bb43730e /app/views
parentab1488a6ad93f572e1d184cb9653f76fd408474f (diff)
parentf248d95be26ceca3c2d717fa71557a56e975fece (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/views')
-rw-r--r--app/views/application/_sidebar.html.haml2
-rw-r--r--app/views/custom_css/show.css.erb4
2 files changed, 4 insertions, 2 deletions
diff --git a/app/views/application/_sidebar.html.haml b/app/views/application/_sidebar.html.haml
index 0a952add0..cc157bf47 100644
--- a/app/views/application/_sidebar.html.haml
+++ b/app/views/application/_sidebar.html.haml
@@ -13,4 +13,4 @@
       %h4.emojify= t('footer.trending_now')
 
       - trends.each do |tag|
-        = react_component :hashtag, hashtag: ActiveModelSerializers::SerializableResource.new(tag, serializer: REST::TagSerializer).as_json
+        = react_component :hashtag, hashtag: ActiveModelSerializers::SerializableResource.new(tag, serializer: REST::TagSerializer, scope: current_user, scope_name: :current_user).as_json
diff --git a/app/views/custom_css/show.css.erb b/app/views/custom_css/show.css.erb
index 521834832..bcbe81962 100644
--- a/app/views/custom_css/show.css.erb
+++ b/app/views/custom_css/show.css.erb
@@ -1,10 +1,12 @@
 <%- if Setting.custom_css.present? %>
-<%= Setting.custom_css %>
+<%= raw Setting.custom_css %>
 
 <%- end %>
 <%- UserRole.where(highlighted: true).select { |role| role.color.present? }.each do |role| %>
 .user-role-<%= role.id %> {
   --user-role-accent: <%= role.color %>;
+  --user-role-background: <%= role.color + '19' %>;
+  --user-role-border: <%= role.color + '80' %>;
 }
 
 <%- end %>