style: prevent formatter issue
This commit is contained in:
@@ -181,7 +181,7 @@ mix test
|
||||
|
||||
### Code Quality
|
||||
```bash
|
||||
#mix format - nope, not yet
|
||||
mix format
|
||||
mix credo
|
||||
```
|
||||
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user