Rename .comment--system to .system-comment

This commit is contained in:
Alexander Zaytsev
2025-12-19 09:34:23 +01:00
parent cc6b5cba9c
commit e52eba9c4e
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -36,7 +36,7 @@
padding: var(--comment-padding-block) 0 0;
}
.comment--system & {
.system-comment & {
--comment-padding-block: var(--block-space-half);
text-align: center;
@@ -72,7 +72,7 @@
var(--stripe-color) 1px 10px);
padding-inline: var(--comment-padding-inline);
.comments--system-expanded .comment--system & {
.comments--system-expanded .system-comment & {
--stripe-color: color-mix(in srgb, var(--card-color) 10%, var(--color-canvas));
}
@@ -144,7 +144,7 @@
position: absolute;
}
.comment--system {
.system-comment {
display: none;
transition: var(--dialog-duration) allow-discrete;
transition-property: display;
@@ -155,7 +155,7 @@
}
/* Show the last system comment */
:nth-last-child(1 of .comment--system) {
:nth-last-child(1 of .system-comment) {
display: contents;
.comment__history {
@@ -164,7 +164,7 @@
}
/* Hide the "Show history" button if there's only one system comment */
:nth-child(1 of .comment--system) {
:nth-child(1 of .system-comment) {
.comment__history {
display: none;
}
+1 -1
View File
@@ -1,6 +1,6 @@
<% cache comment do %>
<%# Helper Dependency Updated: avatar_image_tag 2025-12-15 %>
<%= turbo_frame_tag comment, :container, class: { "comment--system": comment.creator.system? } do %>
<%= turbo_frame_tag comment, :container, class: { "system-comment": comment.creator.system? } do %>
<%# Cache bump 2025-12-14: action text attachment rendering changed for lightbox -%>
<div id="<%= dom_id(comment) %>" data-creator-id="<%= comment.creator_id %>" class="comment align-start full-width">
<figure class="comment__avatar flex-item-no-shrink" aria-hidden="true">