zai-org / zai-org/feedback

[Bug] 对话中预览 xlsx 时单元格内容显示不全且无法调整列宽

Open
#630 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: P2
Dominant language
No language data
Stars
22
Forks
1
PR merge metrics
No merged PRs in 30d

Description

提交前确认 · Pre-submission checklist
  • 我已搜索过现有 issue,确认这不是重复(最接近的 #504 是请求新增预览面板的功能建议,与本问题不同)
  • 我已阅读 CONTRIBUTING.md
问题类别 · Category

UI / 界面体验 · UI / UX

涉及的 Agent 框架 · Agent framework

ZCode Agent(自研)

严重程度 · Severity

影响体验 · Major(预览可用但信息不完整,影响数据核对工作流)

复现频率 · Reproducibility

必现 · Always(单元格内容超过渲染列宽即触发)

问题描述 · Description

在对话中预览 Excel(.xlsx)文件时,表格以固定列宽渲染:单个单元格内容较长时被截断,无法查看完整内容;预览也不提供任何调整列宽的交互(如拖拽列边界)。目前只能绕过预览(让 Agent 用脚本逐单元格读取,或转存 CSV/HTML 后用外部程序打开)。

复现步骤 · Steps to reproduce
  1. 准备一个 .xlsx 文件,其中部分单元格包含较长文本
  2. 在 ZCode 对话中展示/预览该 xlsx 文件
  3. 观察预览表格:长内容单元格显示不全
  4. 尝试拖动列边界调整列宽:无响应
期望表现 · Expected behavior

满足其一即可:

  • 单元格内容完整可见(自动换行或自适应列宽)
  • 支持手动调整列宽(拖拽列边界)
  • 或支持表格内横向滚动查看完整内容
实际表现 · Actual behavior

长内容单元格被截断、显示不全,且无任何列宽调整手段。

ZCode 版本 · ZCode version

v3.11.2(AppImage,X-AppImage-Version=3.11.2.6792)

设备 / 系统 / 浏览器 · Device / OS / Browser

Linux x64,内核 7.0.0-31-generic

截图 / 录屏 / 日志 · Screenshots / Recordings / Logs

暂无,如有需要可后续补充截图与 ~/.zcode/log 日志。

相关参考:#504(右侧面板预览 Office 文档的功能建议,若落地建议一并考虑表格交互);同类编辑器的同型问题:zed-industries/zed#50044

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source files, tests, or implementation entry points. Start by reproducing the conversation's .xlsx preview with a workbook containing long cell text, then locate the preview implementation and its existing UI tests; done means long content can be fully inspected through wrapping, resizing, or horizontal scrolling, with regression coverage.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.