Tencent / Tencent/tdesign-miniprogram

[Toast 轻提示] 设置最大宽度--td-toast-max-width不符合预期

Open
#3,813 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🐞 bug
Dominant language
Vue
Stars
1.8k
Forks
337
Avg merge
1d 21h
Merged PRs (30d)
19

Description

tdesign-miniprogram 版本

1.9.7

重现链接

No response

重现步骤
  1. 设置较长的文字
  2. 修改--td-toast-max-width大于375rpx
  3. 查看效果不符合预期
期望结果
  1. 设置最大宽度大于375rpx时,应该正常生效
  2. 最大宽度生效后,t-toast的底部高度应该只有padding的高度,不应该多出一截高度
实际结果
  • webview模式:最大宽度不生效
Image
  • skyline模式:最大宽度不生效 或 最大宽度生效,但t-toast本身高度不符合预期
Image
基础库版本

3.8.12

补充说明

No response

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

Start from the Toast implementation and the --td-toast-max-width styles, then reproduce the issue in both webview and skyline modes with text longer than 375rpx. Done means widths above 375rpx take effect and the Toast bottom height contains only the intended padding, without an extra section.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.