[PR #12350] Bugfix/style and i18n fixes #27608

Closed
opened 2026-02-21 20:41:51 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/12350

State: closed
Merged: Yes


Summary

Resolves #11849

This PR is a resubmission as requested, as part of the now-closed #11850 .

Fixed

  • Fix the style issue with the WeightedScore component

    • Corrected the issue where the WeightedScore component slightly overlapped with other elements.
  • Fix the issue of Echarts charts and Markdown tables being too wide in conversations

    • Resolved the problem where Echarts charts and Markdown tables appeared too wide in conversations, ensuring they display correctly within the message window.
  • Add missing i18n items

    • Added the missing i18n item for the copy image button in the image preview component.

Modification Details

This section was automatically generated by GitHub Copilot actions.

This pull request includes several updates to the user interface and internationalization files. The most important changes involve adjustments to the layout and styling of components, as well as updates to translations.

User Interface Adjustments:

Internationalization Updates:

**Original Pull Request:** https://github.com/langgenius/dify/pull/12350 **State:** closed **Merged:** Yes --- # Summary Resolves #11849 ***This PR is a resubmission as requested, as part of the now-closed #11850 .*** # Fixed - **Fix the style issue with the `WeightedScore` component** - Corrected the issue where the `WeightedScore` component slightly overlapped with other elements. - **Fix the issue of Echarts charts and Markdown tables being too wide in conversations** - Resolved the problem where Echarts charts and Markdown tables appeared too wide in conversations, ensuring they display correctly within the message window. - **Add missing i18n items** - Added the missing i18n item for the copy image button in the image preview component. # Modification Details > This section was automatically generated by `GitHub Copilot actions`. This pull request includes several updates to the user interface and internationalization files. The most important changes involve adjustments to the layout and styling of components, as well as updates to translations. ### User Interface Adjustments: * [`web/app/components/app/configuration/dataset-config/params-config/weighted-score.tsx`](diffhunk://#diff-4b55e7b0ca14b3e8ecd425c7c08bfaeb647db979e79f4dc48e2fb789f85a87ebL32-R32): Adjusted padding and margin in the `WeightedScore` component to improve layout. [[1]](diffhunk://#diff-4b55e7b0ca14b3e8ecd425c7c08bfaeb647db979e79f4dc48e2fb789f85a87ebL32-R32) [[2]](diffhunk://#diff-4b55e7b0ca14b3e8ecd425c7c08bfaeb647db979e79f4dc48e2fb789f85a87ebL42-R42) * [`web/app/components/base/chat/chat/question.tsx`](diffhunk://#diff-e2ad056343741bcfec2b026286000ef01fe4fa36aa49ced966385840ad255132L31-R32): Modified padding and width properties in the `Question` component to enhance the chat bubble appearance. * [`web/app/components/base/markdown.tsx`](diffhunk://#diff-52c498c83b6057a375fec61d92cb64425781c64218c6f24bdb3110203a020ddbL114-R116): Updated the `CodeBlock` component to make the chart container responsive and add a horizontal scroll for better display on smaller screens. ### Internationalization Updates: * [`web/i18n/en-US/common.ts`](diffhunk://#diff-834afc54ad67c45f7cbcaf316e0fddab37b61a7dd741a2abff1a34e4ffdcb620R42): Added a new translation key for "Image copied". * [`web/i18n/zh-Hans/common.ts`](diffhunk://#diff-414a473343ae77601ef4f5ae2912b7636a38ed80d05611b9b2c70f54a1d91fccR42): Added a new translation key for "图片已复制" (Image copied).
yindo added the pull-request label 2026-02-21 20:41:51 -05:00
yindo closed this issue 2026-02-21 20:41:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#27608