style: prevent formatter issue

This commit is contained in:
Schuwi
2025-09-20 11:50:22 +02:00
parent f4ee768c52
commit aaf278f7f9
2 changed files with 7 additions and 5 deletions

View File

@@ -181,7 +181,7 @@ mix test
### Code Quality
```bash
#mix format - nope, not yet
mix format
mix credo
```

View File

@@ -1199,8 +1199,9 @@ defmodule ComponentsElixirWeb.ComponentsLive do
<%= if component.description do %>
<div>
<h4 class="text-sm font-medium text-base-content mb-2">Description</h4>
<%!-- Keep interpolation inline to prevent whitespace-pre-wrap from preserving template indentation --%>
<p class="text-sm text-base-content/70 leading-relaxed whitespace-pre-wrap">{component.description}</p>
<%!-- Keep interpolation inline to prevent whitespace-pre-wrap from preserving template indentation.
Use phx-no-format so the formatter won't break the layout. --%>
<p phx-no-format class="text-sm text-base-content/70 leading-relaxed whitespace-pre-wrap">{component.description}</p>
</div>
<% end %>
@@ -1393,8 +1394,9 @@ defmodule ComponentsElixirWeb.ComponentsLive do
<!-- Middle row: Description -->
<%= if component.description do %>
<div class="mt-1">
<%!-- Keep interpolation inline to prevent whitespace-pre-wrap from preserving template indentation --%>
<p class="text-sm text-base-content/70 line-clamp-2 whitespace-pre-wrap">{component.description}</p>
<%!-- Keep interpolation inline to prevent whitespace-pre-wrap from preserving template indentation.
Use phx-no-format so the formatter won't break the layout. --%>
<p phx-no-format class="text-sm text-base-content/70 line-clamp-2 whitespace-pre-wrap">{component.description}</p>
</div>
<% end %>