Skip to content

Conversation

@ErBWs
Copy link
Contributor

@ErBWs ErBWs commented May 15, 2025

这样不会侵占到电脑左侧边栏,更接近 toast

image image image

@ErBWs
Copy link
Contributor Author

ErBWs commented May 15, 2025

另外这个 Dismiss 也许可以去掉
image

@Predidit
Copy link
Owner

看上去相当棒,唯一的问题是我不确定居中的 toast 是否符合 material 规范

因为 Google 自己的应用一般将 toast 放置在左侧,我看一下文档,当然我觉得左侧也不一定是个好主意,在我们的用例下可能很丑

@ErBWs
Copy link
Contributor Author

ErBWs commented May 15, 2025

设计文档上是允许的

image

@Predidit
Copy link
Owner

我在编写这部分代码的时候就注意到了文档中的建议

也就是我们不应该有一个作用只是隐藏 toast 的按钮,但是我觉得我们还是需要它的。Google 某些站点中在这个位置有相同的按钮但命名为 Got it!

不过我突然找不到相关的例子了

@ErBWs
Copy link
Contributor Author

ErBWs commented May 15, 2025

Google 某些站点中在这个位置有相同的按钮但命名为 Got it!

实际上打开 Material Design 3 的网站就会有一个 Got it,理论上这个 snack bar 是常驻的,但是我不知道为什么它会在一瞬间消失

image

@Predidit Predidit merged commit 2259a14 into Predidit:main May 15, 2025
6 checks passed
@ErBWs ErBWs deleted the feat-toast branch May 15, 2025 10:29
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.

2 participants