Eugen Rochko
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
7 additions and
2 deletions
-
app/javascript/styles/mastodon/widgets.scss
-
app/models/featured_tag.rb
|
|
@ -324,7 +324,8 @@ |
|
|
|
&.active h4 { |
|
|
|
&, |
|
|
|
.fa, |
|
|
|
small { |
|
|
|
small, |
|
|
|
.trends__item__current { |
|
|
|
color: $primary-text-color; |
|
|
|
} |
|
|
|
} |
|
|
@ -337,6 +338,10 @@ |
|
|
|
&.active .avatar-stack .account__avatar { |
|
|
|
border-color: $ui-highlight-color; |
|
|
|
} |
|
|
|
|
|
|
|
.trends__item__current { |
|
|
|
padding-right: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -23,7 +23,7 @@ class FeaturedTag < ApplicationRecord |
|
|
|
validate :validate_featured_tags_limit, on: :create |
|
|
|
|
|
|
|
def name=(str) |
|
|
|
self.tag = Tag.find_or_initialize_by(name: str.strip.delete('#').mb_chars.downcase.to_s) |
|
|
|
self.tag = Tag.find_or_create_by_names(str.strip)&.first |
|
|
|
end |
|
|
|
|
|
|
|
def increment(timestamp) |
|
|
|