Compare commits
6 Commits
08c9cddc78
...
92d1d21d00
Author | SHA1 | Date | |
---|---|---|---|
92d1d21d00 | |||
917f627933 | |||
4946a6b119 | |||
9f784c3190 | |||
aa08e212ee | |||
80ad939aab |
@ -35,9 +35,7 @@ steps:
|
|||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
tags:
|
tags: latest
|
||||||
- latest
|
|
||||||
- ${DRONE_TAG}
|
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- stable
|
- stable
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
# v0.2.2
|
||||||
|
- Fix loading and reconnecting pages not being fixed
|
||||||
|
- Fix closing modal in some cases not triggering a page reload
|
||||||
|
- Fix error when display container and tag edit routes from a fresh reload
|
||||||
|
|
||||||
# v0.2.1
|
# v0.2.1
|
||||||
- Fix checkbox spacing for mobile view
|
- Fix checkbox spacing for mobile view
|
||||||
- Fix spacing with form elements in mobile view
|
- Fix spacing with form elements in mobile view
|
||||||
|
@ -16,7 +16,7 @@ defmodule CanneryWeb.ContainerLive.Index do
|
|||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
||||||
{:noreply, apply_action(socket, live_action, params)}
|
{:noreply, apply_action(socket, live_action, params) |> display_containers()}
|
||||||
end
|
end
|
||||||
|
|
||||||
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :edit, %{"id" => id}) do
|
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :edit, %{"id" => id}) do
|
||||||
|
@ -38,28 +38,39 @@ defmodule CanneryWeb.LiveHelpers do
|
|||||||
"""
|
"""
|
||||||
def modal(assigns) do
|
def modal(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
|
<%= live_patch to: @return_to,
|
||||||
|
id: "modal-bg",
|
||||||
|
class:
|
||||||
|
"fade-in fixed z-10 left-0 top-0
|
||||||
|
w-full h-full overflow-hidden
|
||||||
|
p-8 flex flex-col justify-center items-center cursor-auto",
|
||||||
|
style: "background-color: rgba(0,0,0,0.4);",
|
||||||
|
phx_remove: hide_modal()
|
||||||
|
do %>
|
||||||
|
<span class="hidden"></span>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
id="modal"
|
id="modal"
|
||||||
class="fade-in fixed z-10 left-0 top-0
|
class="fixed z-10 left-0 top-0 pointer-events-none
|
||||||
w-full h-full overflow-hidden
|
w-full h-full overflow-hidden
|
||||||
p-8 flex flex-col justify-center items-center"
|
p-8 flex flex-col justify-center items-center"
|
||||||
style="opacity: 1 !important; background-color: rgba(0,0,0,0.4);"
|
|
||||||
phx-remove={hide_modal()}
|
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
id="modal-content"
|
id="modal-content"
|
||||||
class="fade-in-scale w-full max-w-3xl max-h-128 relative overflow-y-auto
|
class="fade-in-scale w-full max-w-3xl max-h-128 relative pointer-events-auto overflow-y-auto
|
||||||
|
p-8 flex flex-col justify-center items-center
|
||||||
flex flex-col justify-start items-center
|
flex flex-col justify-start items-center
|
||||||
bg-white border-2 rounded-lg"
|
bg-white border-2 rounded-lg"
|
||||||
phx-click-away={hide_modal()}
|
|
||||||
phx-window-keydown={hide_modal()}
|
|
||||||
phx-key="escape"
|
|
||||||
>
|
>
|
||||||
<%= live_patch to: @return_to,
|
<%= live_patch to: @return_to,
|
||||||
id: "close",
|
id: "close",
|
||||||
class:
|
class:
|
||||||
"absolute top-8 right-10 text-gray-500 hover:text-gray-800 transition-all duration-500 ease-in-out",
|
"absolute top-8 right-10
|
||||||
phx_click: hide_modal() do %>
|
text-gray-500 hover:text-gray-800
|
||||||
|
transition-all duration-500 ease-in-out",
|
||||||
|
phx_remove: hide_modal()
|
||||||
|
do %>
|
||||||
<i class="fa-fw fa-lg fas fa-times"></i>
|
<i class="fa-fw fa-lg fas fa-times"></i>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
@ -74,6 +85,7 @@ defmodule CanneryWeb.LiveHelpers do
|
|||||||
def hide_modal(js \\ %JS{}) do
|
def hide_modal(js \\ %JS{}) do
|
||||||
js
|
js
|
||||||
|> JS.hide(to: "#modal", transition: "fade-out")
|
|> JS.hide(to: "#modal", transition: "fade-out")
|
||||||
|
|> JS.hide(to: "#modal-bg", transition: "fade-out")
|
||||||
|> JS.hide(to: "#modal-content", transition: "fade-out-scale")
|
|> JS.hide(to: "#modal-content", transition: "fade-out-scale")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -15,7 +15,7 @@ defmodule CanneryWeb.TagLive.Index do
|
|||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
||||||
{:noreply, apply_action(socket, live_action, params)}
|
{:noreply, apply_action(socket, live_action, params) |> display_tags}
|
||||||
end
|
end
|
||||||
|
|
||||||
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :edit, %{"id" => id}) do
|
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :edit, %{"id" => id}) do
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
<div
|
<div
|
||||||
id="loading"
|
id="loading"
|
||||||
class="absolute opacity-0 top-0 left-0 w-screen h-screen bg-white z-50
|
class="fixed opacity-0 top-0 left-0 w-screen h-screen bg-white z-50
|
||||||
flex flex-col justify-center items-center space-y-4
|
flex flex-col justify-center items-center space-y-4
|
||||||
transition-opacity ease-in-out duration-500"
|
transition-opacity ease-in-out duration-500"
|
||||||
>
|
>
|
||||||
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
<div
|
<div
|
||||||
id="disconnect"
|
id="disconnect"
|
||||||
class="absolute opacity-0 top-0 left-0 w-screen h-screen bg-white z-50
|
class="fixed opacity-0 top-0 left-0 w-screen h-screen bg-white z-50
|
||||||
flex flex-col justify-center items-center space-y-4
|
flex flex-col justify-center items-center space-y-4
|
||||||
transition-opacity ease-in-out duration-500"
|
transition-opacity ease-in-out duration-500"
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user