Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix(editor): correct empty editor state structure and wide screen layout (#13131)

Innei8d387a98a030
diff --git a/src/features/WideScreenContainer/index.tsx b/src/features/WideScreenContainer/index.tsx
index 9b34832ec82..4c5f3d4f5e7 100644
--- a/src/features/WideScreenContainer/index.tsx
+++ b/src/features/WideScreenContainer/index.tsx
@@ -13,6 +13,7 @@ import { systemStatusSelectors } from '@/store/global/selectors';
const styles = createStaticStyles(({ css }) => ({
container: css`
+ flex-grow: 1;
align-self: center;
transition: width 0.25s ${cssVar.motionEaseInOut};
`,
diff --git a/src/routes/(main)/agent/profile/features/constants.ts b/src/routes/(main)/agent/profile/features/constants.ts
index 78213f576d0..b5064e40e31 100644
--- a/src/routes/(main)/agent/profile/features/constants.ts
+++ b/src/routes/(main)/agent/profile/features/constants.ts
@@ -5,32 +5,24 @@
*/
export const EMPTY_EDITOR_STATE = {
root: {
+ id: 'root',
+ type: 'root',
+ format: '',
+ indent: 0,
+ version: 1,
children: [
{
- children: [
- {
- detail: 0,
- format: 0,
- mode: 'normal',
- style: '',
- text: '',
- type: 'text',
- version: 1,
- },
- ],
- direction: null,
+ id: '42',
+ type: 'paragraph',
format: '',
indent: 0,
- textFormat: 0,
- textStyle: '',
- type: 'paragraph',
version: 1,
+ children: [],
+ direction: null,
+ textStyle: '',
+ textFormat: 0,
},
],
direction: null,
- format: '',
- indent: 0,
- type: 'root',
- version: 1,
},
};