diff --git a/packages/pacer-devtools/src/components/Shell.tsx b/packages/pacer-devtools/src/components/Shell.tsx index 4a5631ff1..0d8a2072e 100644 --- a/packages/pacer-devtools/src/components/Shell.tsx +++ b/packages/pacer-devtools/src/components/Shell.tsx @@ -125,14 +125,11 @@ export function Shell() {
@@ -144,11 +141,7 @@ export function Shell() {
-
+
Details
{props.entry.type}
-
+
Key
{key}
@@ -97,8 +97,7 @@ function StateHeaderInner(props: {
{reductionPercentage()}% reduction
diff --git a/packages/pacer-devtools/src/styles/use-styles.ts b/packages/pacer-devtools/src/styles/use-styles.ts index 91ca2312b..291274281 100644 --- a/packages/pacer-devtools/src/styles/use-styles.ts +++ b/packages/pacer-devtools/src/styles/use-styles.ts @@ -19,7 +19,8 @@ const stylesFactory = (theme: 'light' | 'dark') => { flex-direction: column; box-sizing: border-box; width: 100%; - height: 100%; + height: var(--shell-slot-height, 100%); + max-height: var(--shell-slot-height, unset); min-height: 0; overflow: hidden; `, @@ -88,6 +89,9 @@ const stylesFactory = (theme: 'light' | 'dark') => { overflow: hidden; min-height: 0; flex-shrink: 0; + width: var(--left-panel-width, 300px); + min-width: 150px; + max-width: 800px; `, rightPanel: css` background: ${t(colors.gray[100], colors.darkGray[800])}; @@ -372,6 +376,15 @@ const stylesFactory = (theme: 'light' | 'dark') => { box-shadow 0.3s, background 0.3s; `, + stateHeaderMeta: css` + display: flex; + align-items: center; + gap: 16px; + `, + stateHeaderReduction: css` + margin-left: auto; + font-weight: bold; + `, } }