Skip to content

Commit

Permalink
New classes to at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
cibernox committed Nov 28, 2024
1 parent 41a9ddc commit 6596509
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ require Logger
classes
|> String.split(" ", trim: true)
|> Enum.reject(fn s -> String.starts_with?(s, "opacity-") end)
new_class = "opacity-#{opacity}"
Enum.join([new_class | other_classes], " ")
Enum.join(other_classes ++ "opacity-#{opacity}", " ")
end

defp assign_form(socket, value) do
Expand Down

0 comments on commit 6596509

Please sign in to comment.