]> git.openstreetmap.org Git - rails.git/commitdiff
Remove custom opacity from changeset comments count
authorAnton Khorev <tony29@yandex.ru>
Sun, 1 Oct 2023 23:06:38 +0000 (02:06 +0300)
committerAnton Khorev <tony29@yandex.ru>
Sun, 1 Oct 2023 23:32:03 +0000 (02:32 +0300)
app/assets/stylesheets/common.scss
app/views/changesets/_changeset.html.erb

index b95d1fcd60202c5072d962d0520a45ac2f3e9106..bf527125dad51398f408095b08de88c3c4a994f9 100644 (file)
@@ -733,10 +733,6 @@ tr.turn:hover {
     color: $darkgrey;
   }
 
-  .comments-0 {
-    opacity: 0.5;
-  }
-
   .changeset_more .loader {
     display: none;
     width: 100%;
index a59c85ec4ba18632e8d9a27dcfd4c0a1606d406d..9930089517aa2e126d4b1220056e8a4de22ef22d 100644 (file)
@@ -24,7 +24,7 @@
         #<%= changeset.id %>
       </a>
     </div>
-    <div class="col-auto comments comments-<%= changeset.comments.length %>">
+    <div class="col-auto comments<%= " opacity-50" if changeset.comments.empty? %>">
       <%= changeset.comments.length %>
       <span class="icon note grey"></span>
     </div>