Rename .comment--system to .system-comment
This commit is contained in:
@@ -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,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">
|
||||
|
||||
Reference in New Issue
Block a user