展开的移动时间线中缺少帖子摘录

Can repro on Meta on iOS, not seeing any errors in the console.

5 个赞

Confirming the same issue on Android here on Meta.

4 个赞

I fixed the egregious issue with:

I think this may have been caused by @daniel’s change here:

There is still one more issue open here, when you drag all the way to the bottom timeline does not close (it only closes if you drag to a specific number, not the extra buffer at the end)

@daniel can you have a look at ^^^^

6 个赞

@martin 这确实仍然是一个问题,而且在移动设备上情况甚至更糟。

假设一个主题有 30 条帖子,其中最后一条帖子非常大。尝试使用移动滑块(即移动视图,然后点击 30/30 以调出移动滑块)。

  1. 当你导航到最后一条帖子时,它不会关闭;但导航到其他任何帖子时,它会关闭。

  2. 如果最后一条帖子非常大,在移动设备上的位置会不正确……你无法看到最后一条帖子的末尾。

3 个赞

@sam 我已经找到滑块在超出时间线时无法关闭的原因,现在该问题已修复。最后一篇帖子末尾的显示问题,只是我之前提交的那个 PR 带来的连带影响。我的解决方案是:如果最后一篇帖子较长,就将其向上回退 1/10 的高度,这样应该就能看到帖子的末尾了。例如,修复前的效果如下:

修复后的效果:

如果这点文字仍然太小,我们可以调整为回退 1/5 的帖子高度?如果我们直接回退到帖子顶部,又会回到最初的问题:无法滚动超过大帖子的底部。

2 个赞

我觉得这个主意不错,我们试试看。

1 个赞

修复正在此处构建:FIX: Mobile topic-timeline not closing on scrolling past last post by martin-brennan · Pull Request #8730 · discourse/discourse · GitHub

3 个赞