Skip to content

fix(webgal): add bottom fade mask for overflowing save/load text - #1073

Open
Yunease wants to merge 1 commit into
OpenWebGAL:devfrom
Yunease:fix/save-load-text-fade
Open

Yunease wants to merge 1 commit into
OpenWebGAL:devfrom
Yunease:fix/save-load-text-fade

Conversation

@Yunease

@Yunease Yunease commented Nov 30, 2026 •

Copy link
Copy Markdown

问题说明

在存/读档界面(Save / Load)中,当存档台词较长超过可显示行数时,.Save_Load_content_text_padding 未限制高度,溢出文字会直接被外层容器硬截断(例如最后一行只显示一半)。

如图:
image
不太美观,而且有点违反用户直觉。

修改内容
在 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)构建通过。
手动启动看了一下,存档盒子底部能看到线性渐变,对溢出的文本有渐隐效果。

image

@Yunease

Yunease commented Nov 30, 2026 •

Copy link
Copy Markdown
Author

哦我懂了,这个问题还是复合情况。
正常来说有角色名挤压的话是不会出现第四行的占位的
但是如果在旁白处存档,就会导致这个问题出现

编辑:不对,和旁白无关,是溢出文本太长导致的,光加渐变修不了

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant