open-codesign
open-codesign copied to clipboard
feat(desktop): expand prompt composer inline
Summary
- Add inline expand/collapse controls for the desktop prompt composer once prompt text grows beyond a few lines.
- Smoothly expand the left panel width by moving the draggable divider to the right, giving the composer more horizontal space.
- Animate the prompt textarea upward from the bottom in expanded mode, and smoothly restore the original layout on collapse.
- Add localized labels for the expand/collapse affordance.
Validation
pnpm lint -- apps/desktop/src/renderer/src/App.tsx apps/desktop/src/renderer/src/components/chat/PromptInput.tsx apps/desktop/src/renderer/src/store.ts packages/i18n/src/locales/en.json packages/i18n/src/locales/zh-CN.json packages/i18n/src/locales/pt-BR.jsonpnpm --filter @open-codesign/desktop typecheckpnpm --filter @open-codesign/i18n testpnpm --filter @open-codesign/desktop test- pre-commit
turbo run test - pre-push typecheck + lint
原来的输入框太小了,没有自适应变化和展开功能,现在我加了点击外扩角标后,左右面板的可拖拽分割线平滑右移,左侧输入区获得更多宽度,同时输入框从底部向上扩展;点击收起再平滑回到原布局。
感谢您的贡献和反馈 请您看看bot的回复 再修一修bug 谢谢!