Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export function DevToolsPanel({
onClick={onCloseDevToolsPanel}
/>
<Draggable
data-nextjs-devtools-panel-draggable
padding={INDICATOR_PADDING}
onDragStart={() => {}}
position={state.devToolsPosition}
Expand Down Expand Up @@ -160,13 +161,35 @@ export const DEVTOOLS_PANEL_STYLES = css`
margin: auto;
/* TODO: This is for fullscreen mode. */
/* top: 10vh; */

@media (max-width: 575px) {
left: 20px !important;
right: 20px !important;
}

@media (min-width: 576px) {
max-width: 540px;
}

@media (min-width: 768px) {
max-width: 720px;
}

@media (min-width: 992px) {
max-width: 960px;
}
}

[data-nextjs-devtools-panel-overlay-backdrop] {
/* TODO: Blur on fullscreen mode. */
opacity: 0;
}

[data-nextjs-devtools-panel-draggable] {
/* For responsiveness */
width: 100%;
}

[data-nextjs-devtools-panel-dialog] {
-webkit-font-smoothing: antialiased;
display: flex;
Expand All @@ -178,12 +201,9 @@ export const DEVTOOLS_PANEL_STYLES = css`
box-shadow: var(--shadow-lg);
position: relative;
overflow-y: auto;

/* TODO: Remove once the content is filled. */
min-width: 800px;
min-height: 500px;
/* This is handled from dialog/styles.ts */
max-width: var(--next-dialog-max-width);
width: 100%;
Comment thread
devjiwonchoi marked this conversation as resolved.
Outdated
max-height: 50vh;
min-height: 450px;
}

[data-nextjs-devtools-panel-header] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export function Draggable({
position: currentCorner,
setPosition: setCurrentCorner,
onDragStart,
...props
Comment thread
devjiwonchoi marked this conversation as resolved.
Outdated
}: {
children: React.ReactElement
position: Corners
Expand Down Expand Up @@ -121,7 +122,7 @@ export function Draggable({
}

return (
<div ref={ref} {...drag} style={{ touchAction: 'none' }}>
<div {...props} ref={ref} {...drag} style={{ touchAction: 'none' }}>
Comment thread
devjiwonchoi marked this conversation as resolved.
Outdated
{children}
</div>
)
Expand Down