Try just using comments for details with a subtle prompt for the creator

This commit is contained in:
Jason Zimdars
2024-08-22 18:30:30 -05:00
parent 73f7ddca36
commit e11bbee4bb
2 changed files with 1 additions and 12 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
</div>
<div class="comment__body txt-align-start">
<%= form_with model: [@splat, @splat.comments.build], class: "flex flex-column gap full-width" do | form | %>
<%= form.text_area :body, class: "input", required: true, placeholder: "Type your comment…", rows: 4 %>
<%= form.text_area :body, class: "input", required: true, placeholder: Current.user == @splat.creator && @splat.comments.size == 1 ? "Add some notes…" : "Type your comment…", rows: 4 %>
<%= form.button class: "btn btn--reversed center" do %>
<%= image_tag "check.svg", aria: { hidden: "true" }, size: 24 %>
-11
View File
@@ -24,17 +24,6 @@
<%= render @splat %>
</div>
<div class="splat__notes fill-transparent txt-align-start panel center pad-block-half pad-inline-end borderless margin-block-start-double flex align-start" style="--splat-color: <%= @splat.color %>;">
<div class="full-width">
<%= simple_format @splat.body %>
</div>
<%= tag.button class: "btn txt-small btn--reversed flex-item-no-shrink", style: "--btn-background: #{ @splat.color }" do %>
<%= image_tag "pencil.svg", aria: { hidden: true }, size: 24 %>
<span class="for-screen-reader">Edit <%= @splat.title %> notes</span>
<% end %>
</div>
<section class="comments panel center borderless margin-block flex flex-column gap" style="--splat-color: <%= @splat.color %>;">
<hr />