fix a display bug when the message wider than the window (#304)

This commit is contained in:
Qiu Hua 2021-05-28 19:04:07 +08:00 committed by GitHub
parent 26226a42e0
commit 605c5e397e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@
phx-click="lv:clear-flash" phx-click="lv:clear-flash"
phx-value-key="info"> phx-value-key="info">
<%= remix_icon("information-line", class: "text-2xl") %> <%= remix_icon("information-line", class: "text-2xl") %>
<span class="whitespace-pre"><%= live_flash(@flash, :info) %></span> <span class="whitespace-pre-wrap"><%= live_flash(@flash, :info) %></span>
</div> </div>
<% end %> <% end %>
@ -14,7 +14,7 @@
phx-click="lv:clear-flash" phx-click="lv:clear-flash"
phx-value-key="error"> phx-value-key="error">
<%= remix_icon("error-warning-line", class: "text-2xl") %> <%= remix_icon("error-warning-line", class: "text-2xl") %>
<span class="whitespace-pre"><%= live_flash(@flash, :error) %></span> <span class="whitespace-pre-wrap"><%= live_flash(@flash, :error) %></span>
</div> </div>
<% end %> <% end %>
</div> </div>