From 5951beebcb9011e935eca851b0f1333543ad6b4c Mon Sep 17 00:00:00 2001 From: Ridhwana Date: Thu, 7 Sep 2023 10:32:53 +0200 Subject: [PATCH] Polish tag UI (#20038) * feat: update the buttons * chore: update the buttons to use c-btn * feat: update the following tag to be crayons-btn crayons-btn--outlined * feat: update the gap between the buttons * feat: style for moile * Empty commit --- .../javascripts/initializers/initScrolling.js | 4 +-- app/assets/stylesheets/components/tags.scss | 20 +++++++++++++ app/javascript/tags/Tag.jsx | 12 ++++---- app/views/dashboards/_tags.html.erb | 5 ++-- app/views/tags/index.html.erb | 28 +++++++++++-------- 5 files changed, 46 insertions(+), 23 deletions(-) diff --git a/app/assets/javascripts/initializers/initScrolling.js b/app/assets/javascripts/initializers/initScrolling.js index b3b99e799..a186514de 100644 --- a/app/assets/javascripts/initializers/initScrolling.js +++ b/app/assets/javascripts/initializers/initScrolling.js @@ -145,14 +145,14 @@ function buildTagsHTML(tag) { if (tag.explicit_points < 0) { unhideButtonContainer = `
- +
`; } if (tag.explicit_points >= 0) { followingButtonContainer = `
- +
<% end %>
diff --git a/app/views/tags/index.html.erb b/app/views/tags/index.html.erb index 27183f485..086b851a3 100644 --- a/app/views/tags/index.html.erb +++ b/app/views/tags/index.html.erb @@ -28,18 +28,22 @@ <%= t("views.tags.heading.default") %> <% end %> -
-
+
+
<%= link_to t("views.tags.following_tags"), dashboard_following_tags_path, class: "crayons-btn crayons-btn--ghost" %> <%= link_to t("views.tags.hidden_tags"), dashboard_hidden_tags_path, class: "crayons-btn crayons-btn--ghost" %> -
- " name="q" placeholder="<%= t("views.tags.search.placeholder") %>" autocomplete="off" /> - -
- +
+
+
+ " name="q" placeholder="<%= t("views.tags.search.placeholder") %>" autocomplete="off" /> + +
+
+
+
<% if @tags.empty? %>
@@ -62,14 +66,14 @@ <% end %>
-
+