Skip to content

Commit 64f418b

Browse files
committed
add max-width to templates gallery
1 parent 7a482ae commit 64f418b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pcweb/pages/gallery/gallery.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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-7xl 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)