Skip to content

Commit 4da237f

Browse files
fix(dashboard): correct overflow in a few settings edit forms (#11982)
* add correct overflow to forms * changeset --------- Co-authored-by: SteelRazor47 <[email protected]> Co-authored-by: Oli Juhl <[email protected]>
1 parent 9fb5baa commit 4da237f

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.changeset/tiny-carrots-wave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/dashboard": patch
3+
---
4+
5+
fix(dashboard): correct overflow in a few settings edit forms

packages/admin/dashboard/src/routes/locations/location-service-zone-shipping-option-edit/components/edit-region-form/edit-shipping-option-form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ export const EditShippingOptionForm = ({
111111

112112
return (
113113
<RouteDrawer.Form form={form}>
114-
<KeyboundForm onSubmit={handleSubmit} className="flex flex-1 flex-col">
115-
<RouteDrawer.Body>
114+
<KeyboundForm onSubmit={handleSubmit} className="flex flex-1 flex-col overflow-hidden">
115+
<RouteDrawer.Body className="overflow-y-auto">
116116
<div className="flex flex-col gap-y-8">
117117
<div className="flex flex-col gap-y-8">
118118
{!isPickup && (

packages/admin/dashboard/src/routes/regions/region-edit/components/edit-region-form/edit-region-form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ export const EditRegionForm = ({
7979

8080
return (
8181
<RouteDrawer.Form form={form}>
82-
<KeyboundForm onSubmit={handleSubmit} className="flex flex-1 flex-col">
83-
<RouteDrawer.Body>
82+
<KeyboundForm onSubmit={handleSubmit} className="flex flex-1 flex-col overflow-hidden">
83+
<RouteDrawer.Body className="overflow-y-auto">
8484
<div className="flex flex-col gap-y-8">
8585
<div className="flex flex-col gap-y-4">
8686
<Form.Field

packages/admin/dashboard/src/routes/store/store-edit/components/edit-store-form/edit-store-form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ export const EditStoreForm = ({ store }: EditStoreFormProps) => {
9494

9595
return (
9696
<RouteDrawer.Form form={form}>
97-
<KeyboundForm onSubmit={handleSubmit} className="flex h-full flex-col">
98-
<RouteDrawer.Body>
97+
<KeyboundForm onSubmit={handleSubmit} className="flex h-full flex-col overflow-hidden">
98+
<RouteDrawer.Body className="overflow-y-auto">
9999
<div className="flex flex-col gap-y-8">
100100
<Form.Field
101101
control={form.control}

0 commit comments

Comments
 (0)