Skip to content

Commit fd7a35c

Browse files
improve responsiveness of modal
1 parent 25925da commit fd7a35c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/fileonchain_web/components/core_components.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ defmodule FileonchainWeb.CoreComponents do
5959
aria-modal="true"
6060
tabindex="0"
6161
>
62-
<div class="flex min-h-full items-center justify-center">
62+
<div class="flex min-h-full items-center justify-center p-4 sm:p-6 lg:p-8">
6363
<div class="w-full max-w-4xl p-4 sm:p-6 lg:py-8">
6464
<.focus_wrap
6565
id={"#{@id}-container"}
6666
phx-window-keydown={JS.exec("data-cancel", to: "##{@id}")}
6767
phx-key="escape"
6868
phx-click-away={JS.exec("data-cancel", to: "##{@id}")}
69-
class="shadow-brand-700/10 ring-brand-700/10 relative hidden rounded-2xl bg-brand-900 p-14 shadow-lg ring-1 transition"
69+
class="shadow-brand-700/10 ring-brand-700/10 relative hidden rounded-2xl bg-brand-900 p-4 sm:p-6 lg:p-8 shadow-lg ring-1 transition"
7070
>
7171
<div class="absolute top-6 right-5">
7272
<button

lib/fileonchain_web/live/file_live/form_component.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ defmodule FileonchainWeb.FileLive.FormComponent do
1616
@impl true
1717
def render(assigns) do
1818
~H"""
19-
<div class="overlay mx-auto max-w-md p-12 bg-brand-900 bg-opacity-50 text-white rounded-lg shadow-lg">
19+
<div class="overlay mx-auto max-w-md p-4 sm:p-6 lg:p-12 bg-brand-900 bg-opacity-50 text-white rounded-lg shadow-lg">
2020
<.header class="text-center text-white text-2xl">
2121
<%= @title %>
2222
<:subtitle>Use this form to manage file records in your database.</:subtitle>

0 commit comments

Comments
 (0)