Skip to content

Commit

Permalink
Merge pull request #471 from naymspace/feature/break-text-upload-file…
Browse files Browse the repository at this point in the history
…-list

Break words in upload field file list
  • Loading branch information
krns authored Jul 17, 2024
2 parents d383b95 + 6abe47e commit 48cbecc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/backpex/fields/upload.ex
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ defmodule Backpex.Fields.Upload do

~H"""
<div class="flex flex-col">
<p :for={{_file_key, label} <- @uploaded_files}>
<p :for={{_file_key, label} <- @uploaded_files} class="break-all">
<%= label %>
</p>
</div>
Expand Down Expand Up @@ -445,7 +445,7 @@ defmodule Backpex.Fields.Upload do
<section class="mt-2">
<article>
<%= if @uploads_allowed do %>
<div :for={entry <- @field_uploads.entries}>
<div :for={entry <- @field_uploads.entries} class="break-all">
<p class="inline"><%= Map.get(entry, :client_name) %></p>
<button
Expand All @@ -466,7 +466,7 @@ defmodule Backpex.Fields.Upload do
<% end %>
<%= if @type == :form do %>
<div :for={{file_key, label} <- @uploaded_files}>
<div :for={{file_key, label} <- @uploaded_files} class="break-all">
<p class="inline"><%= label %></p>
<button
type="button"
Expand Down

0 comments on commit 48cbecc

Please sign in to comment.