Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(editor): minor changes (#1888)

sheryl13e642f48d69
diff --git a/packages/cli/templates/pages/editor/page.tsx b/packages/cli/templates/pages/editor/page.tsx
index ee323961f1..8b8fc00eed 100644
--- a/packages/cli/templates/pages/editor/page.tsx
+++ b/packages/cli/templates/pages/editor/page.tsx
@@ -40,7 +40,6 @@ import {
DevicePhoneMobileIcon,
EyeIcon,
PlusCircleIcon,
- ArrowLeftEndOnRectangleIcon,
ShoppingBagIcon,
ShoppingCartIcon,
BanknotesIcon,
@@ -293,8 +292,7 @@ function defaultProps(type: BlockType): Record<string, unknown> {
const editorStyles = stylex.create({
shell: {
- position: 'fixed',
- inset: 0,
+ height: '100%',
display: 'flex',
flexDirection: 'column',
backgroundColor: colorVars['--color-background-body'],
@@ -859,7 +857,7 @@ export default function EditorPage() {
<XDSButton
label={isPanelCollapsed ? 'Expand panel' : 'Collapse panel'}
icon={
- <XDSIcon icon={ArrowLeftEndOnRectangleIcon} size="sm" />
+ <XDSIcon icon={isPanelCollapsed ? ChevronDownIcon : ChevronUpIcon} size="sm" />
}
variant="ghost"
size="sm"