diff --git a/app/assets/stylesheets/comments.css b/app/assets/stylesheets/comments.css index 8e7153ed2..18cbf40dd 100644 --- a/app/assets/stylesheets/comments.css +++ b/app/assets/stylesheets/comments.css @@ -3,30 +3,10 @@ --comment-padding-block: 0.33lh; --comment-padding-inline: 2ch; - display: flex; - font-size: 1.33cqi; - gap: var(--comment-padding-block); - inline-size: 100%; - max-inline-size: 60cqi; - - @media (max-width: 70ch) { - max-inline-size: 100%; - } -} - -.comments__column { display: flex; flex-direction: column; - flex: 4 1 80%; gap: var(--comment-padding-block); -} - -.events__column { - display: flex; - flex-direction: column; - flex: 1 0 20%; - gap: 1lh; - margin-block-start: 0.8em; + margin-inline: var(--tray-size); } .comment { @@ -120,9 +100,5 @@ } .event-summary { - color: var(--bubble-color); - font-size: 0.8em; - font-weight: 500; - gap: 0.5ch; - text-align: start; + padding-inline-start: 3rem; } diff --git a/app/helpers/messages_helper.rb b/app/helpers/messages_helper.rb index d66756318..d47edaa20 100644 --- a/app/helpers/messages_helper.rb +++ b/app/helpers/messages_helper.rb @@ -1,7 +1,7 @@ module MessagesHelper def messages_tag(bubble, &) turbo_frame_tag dom_id(bubble, :messages), - class: "comments center borderless gap-half", + class: "comments borderless gap-half", style: "--bubble-color: <%= bubble.color %>", role: "group", aria: { label: "Messages" }, data: { diff --git a/app/views/bubbles/_messages.html.erb b/app/views/bubbles/_messages.html.erb index f8b656034..eccf19776 100644 --- a/app/views/bubbles/_messages.html.erb +++ b/app/views/bubbles/_messages.html.erb @@ -1,22 +1,5 @@ <%= messages_tag(bubble) do %> <%# Template Dependency: comments/comment %> <%# Template Dependency: event_summaries/event_summary %> - <%#= render bubble.messages, cached: true %> - -
<%= pluralize(@bubble.watchers.count, "person") %> will be notified when someone comments on this.
-