open-codesign icon indicating copy to clipboard operation
open-codesign copied to clipboard

feat(desktop): expand prompt composer inline

Open JUk1-GH opened this issue 7 months ago • 2 comments

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.json
  • pnpm --filter @open-codesign/desktop typecheck
  • pnpm --filter @open-codesign/i18n test
  • pnpm --filter @open-codesign/desktop test
  • pre-commit turbo run test
  • pre-push typecheck + lint

JUk1-GH avatar Apr 22 '26 20:04 JUk1-GH

原来的输入框太小了,没有自适应变化和展开功能,现在我加了点击外扩角标后,左右面板的可拖拽分割线平滑右移,左侧输入区获得更多宽度,同时输入框从底部向上扩展;点击收起再平滑回到原布局。

JUk1-GH avatar Apr 23 '26 06:04 JUk1-GH

感谢您的贡献和反馈 请您看看bot的回复 再修一修bug 谢谢!

hqhq1025 avatar Apr 23 '26 06:04 hqhq1025