Skip to content

Commit 316db41

Browse files
authored
patch iframe to fit larger screens (#1555)
* patch iframe to fit larger screens * increase height of iframe * add max-width to templates gallery * improve gallery width
1 parent dabdd7b commit 316db41

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

pcweb/pages/gallery/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def page(document, is_reflex_template: bool) -> rx.Component:
118118
class_name="w-full h-full xl:rounded-md shadow-small",
119119
id="iFrame",
120120
),
121-
class_name="w-full h-[70vh] text-center flex flex-col gap-y-4 items-center text-slate-10",
121+
class_name="w-full h-[80vh] text-center flex flex-col gap-y-4 items-center text-slate-10",
122122
)
123123
)
124124

pcweb/pages/gallery/gallery.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def app_dialog_with_trigger(
5959
),
6060
class_name="flex flex-col w-full h-full gap-y-3",
6161
),
62-
class_name="w-full max-w-[65em] h-[70vh]",
62+
class_name="w-full !max-w-[75em] xl:max-w-[85em] 2xl:max-w-[95em] h-[80vh]",
6363
),
6464
)
6565

@@ -156,12 +156,14 @@ def create_header():
156156
class_name="flex flex-col justify-center items-center gap-6 w-full text-center",
157157
)
158158

159-
160159
@webpage(path="/templates", title="Templates · Reflex")
161160
def gallery() -> rx.Component:
162161
return rx.el.section(
163-
create_header(),
164-
create_grid_with_items(),
162+
rx.box(
163+
create_header(),
164+
create_grid_with_items(),
165+
class_name="w-full !max-w-[94.5rem] mx-auto",
166+
),
165167
id="gallery",
166-
class_name="flex flex-col mx-auto mt-4 mb-20 px-4 lg:px-6 pt-24 lg:pt-52 w-full",
168+
class_name="w-full px-4 pt-24 lg:pt-52 mt-4 mb-20",
167169
)

0 commit comments

Comments
 (0)