Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix toggle column width #470

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/backpex/html/resource.ex
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ defmodule Backpex.HTML.Resource do
class="h-5 w-5 text-base-content/50 hover:text-base-content"
/>
</label>
<div tabindex="0" class="dropdown-content z-[1] menu bg-base-100 rounded-box w-52 p-4 shadow">
<.form method="POST" for={@form} action={cookie_path(@socket)}>
<div tabindex="0" class="dropdown-content z-[1] menu bg-base-100 rounded-box min-w-52 max-w-72 p-4 shadow">
<.form class="w-full" method="POST" for={@form} action={cookie_path(@socket)}>
<input type="hidden" name={@form[:_resource].name} value={@form[:_resource].value} />
<input type="hidden" name={@form[:_cookie_redirect_url].name} value={@form[:_cookie_redirect_url].value} />
<.toggle_columns_inputs active_fields={@active_fields} form={@form} />
Expand All @@ -364,7 +364,7 @@ defmodule Backpex.HTML.Resource do
<label class="flex cursor-pointer items-center">
<input type="hidden" name={@form[name].name} value="false" />
<input type="checkbox" name={@form[name].name} class="checkbox checkbox-sm checkbox-primary" checked={active} />
<span class="label-text pl-2">
<span class="label-text truncate pl-2">
<%= label %>
</span>
</label>
Expand Down