Skip to content

Commit c9aa612

Browse files
committed
fix modal so it always appears over mobile header and fix dropzone width
1 parent 433f9ed commit c9aa612

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/dev/s2-docs/pages/s2/DropZone.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ function Example(props) {
1919
return (
2020
<DropZone
2121
{...props}
22-
styles={style({width: 320})}
22+
styles={style({width: 320, maxWidth: '90%'})}
2323
/* PROPS */
2424
isFilled={!!content}
2525
// Determine whether dragged content should be accepted.
2626
getDropOperation={types => (
2727
['text/plain', 'image/jpeg', 'image/png', 'image/gif'].some(t => types.has(t))
28-
? 'copy'
28+
? 'copy'
2929
: 'cancel'
3030
)}
3131
onDrop={async (event) => {

packages/dev/s2-docs/src/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function Layout(props: PageProps & {children: ReactElement<any>}) {
125125
currentPage={currentPage} />
126126
<div className={style({display: 'flex', width: 'full'})}>
127127
<Nav pages={pages} currentPage={currentPage} />
128-
<main
128+
<main
129129
key={currentPage.url}
130130
style={{borderBottomLeftRadius: 0, borderBottomRightRadius: 0}}
131131
className={style({

packages/dev/s2-docs/src/MobileHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function MobileHeader({toc, pages, currentPage}) {
124124
flexGrow: 1
125125
})}>
126126
<AdobeLogo />
127-
<h2
127+
<h2
128128
className={style({
129129
font: 'heading-sm',
130130
marginY: 0,

0 commit comments

Comments
 (0)