Repository navigation
Conversation
Author
|
哦我懂了,这个问题还是复合情况。 编辑:不对,和旁白无关,是溢出文本太长导致的,光加渐变修不了 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题说明
在存/读档界面(Save / Load)中,当存档台词较长超过可显示行数时,.Save_Load_content_text_padding 未限制高度,溢出文字会直接被外层容器硬截断(例如最后一行只显示一半)。
如图:

不太美观,而且有点违反用户直觉。
修改内容
在 packages/webgal/src/UI/Menu/SaveAndLoad/SaveAndLoad.module.scss 中为 .Save_Load_content_text_padding 添加 flex: 1; min-height: 0; width: 100%; box-sizing: border-box; overflow: hidden; 限制文本区域高度;
使用 mask-image(及 -webkit-mask-image)在底部 1.2em 区域增加透明渐隐遮罩,让溢出文本平滑淡出,同时不破坏卡片背景渐变与自定义主题样式,短文本也不受影响。
验证情况
已执行 yarn build(包含 tsc 类型检查与 vite build)构建通过。
手动启动看了一下,存档盒子底部能看到线性渐变,对溢出的文本有渐隐效果。