style: prevent formatter issue
This commit is contained in:
@@ -181,7 +181,7 @@ mix test
|
|||||||
|
|
||||||
### Code Quality
|
### Code Quality
|
||||||
```bash
|
```bash
|
||||||
#mix format - nope, not yet
|
mix format
|
||||||
mix credo
|
mix credo
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -1199,8 +1199,9 @@ defmodule ComponentsElixirWeb.ComponentsLive do
|
|||||||
<%= if component.description do %>
|
<%= if component.description do %>
|
||||||
<div>
|
<div>
|
||||||
<h4 class="text-sm font-medium text-base-content mb-2">Description</h4>
|
<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 --%>
|
<%!-- 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>
|
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>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
@@ -1393,8 +1394,9 @@ defmodule ComponentsElixirWeb.ComponentsLive do
|
|||||||
<!-- Middle row: Description -->
|
<!-- Middle row: Description -->
|
||||||
<%= if component.description do %>
|
<%= if component.description do %>
|
||||||
<div class="mt-1">
|
<div class="mt-1">
|
||||||
<%!-- Keep interpolation inline to prevent whitespace-pre-wrap from preserving template indentation --%>
|
<%!-- 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>
|
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>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user