# 托管：滚动时调整消息正文大小

**URL:** https://meta.discourse.org/t/hosted-message-body-resizing-while-scrolling/209959
**Category:** Support
**Created:** [2021年十一月23日 09:09 UTC](https://meta.discourse.org/t/hosted-message-body-resizing-while-scrolling/209959 "2021-11-23T09:09:28Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [2021年十一月23日 09:09 UTC](https://meta.discourse.org/t/hosted-message-body-resizing-while-scrolling/209959/1 "2021-11-23T09:09:28Z")

</div>

在 [community.letsencrypt.org](http://community.letsencrypt.org) 论坛上，在上下滚动消息时，消息正文的宽度会缩小。我昨晚注意到了这个问题，并给他们的工程师 @jsha 发了私信。他让我在这里发帖。这是截图。我只需要向下滚动一点就会发生这种情况。当我从一个回复滚动到下一个回复时也会发生。

在第一张图中，帖子是正常的。

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/a/fab7a5bbb117065af21fd22bec41c8e07c958baf.jpeg)

在这张图中，请注意消息正文已向右移动，并且水平宽度变小。长句子会被截断并换行。头像也移到了左边。

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/9/19926b9359ad466c45869f7d55b6eca0da74188c.png)

我使用的是最新版本的 Firefox。另一位社区领导者也注意到了这种变化。我在 Meta、我自己的论坛或其他论坛上都没有看到或复现这个问题。

---

<div class="post-metadata">

### Author: ![michebs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michebs/32/190102_2.png) [@michebs](https://meta.discourse.org/u/michebs)
#### Post date: [2021年十一月23日 11:04 UTC](https://meta.discourse.org/t/hosted-message-body-resizing-while-scrolling/209959/4 "2021-11-23T11:04:52Z")

</div>

似乎是当前主题与我们的新功能 [粘性头像：帖子头像跟随滚动](https://meta.discourse.org/t/sticky-avatars-posts-avatars-following-scroll/206634) 存在冲突。

如果您需要禁用它，可以使用以下解决方法：

> [@loic](#):
>
> 如果您因为任何原因想禁用粘性头像，目前有一个使用 CSS 的解决方法：
> 
> ```plaintext
> .topic-post.sticky-avatar {
> .topic-avatar {
> position: relative !important;
> top: unset !important; /* 在某些情况下可能需要 */
> }
> }
> 
> ```

---

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [2021年十一月23日 18:23 UTC](https://meta.discourse.org/t/hosted-message-body-resizing-while-scrolling/209959/5 "2021-11-23T18:23:24Z")

</div>

感谢 @michebs。但请注意，[community.letsencrypt.org](http://community.letsencrypt.org) 由 Discourse 托管。如果您能派人进行更改，我们将不胜感激。

通知 Josh @jsha

---

<div class="post-metadata">

### Author: ![jsha](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jsha/32/48894_2.png) [@jsha](https://meta.discourse.org/u/jsha)
#### Post date: [2021年十一月23日 18:49 UTC](https://meta.discourse.org/t/hosted-message-body-resizing-while-scrolling/209959/6 "2021-11-23T18:49:49Z")

</div>

实际上 @JimPas，您正在使用的（Vincent）主题是我们很久以前自定义安装的，以便提供暗黑模式。我会看看 Vincent 是否有更新，或者我们是否能以某种方式解决这个问题。

---

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [2021年十一月23日 18:59 UTC](https://meta.discourse.org/t/hosted-message-body-resizing-while-scrolling/209959/7 "2021-11-23T18:59:20Z")

</div>

我说切换到默认主题可以解决此问题，因此是 Vincent 主题的冲突。

---

<div class="post-metadata">

### Author: ![jsha](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jsha/32/48894_2.png) [@jsha](https://meta.discourse.org/u/jsha)
#### Post date: [2021年十一月23日 19:32 UTC](https://meta.discourse.org/t/hosted-message-body-resizing-while-scrolling/209959/8 "2021-11-23T19:32:12Z")

</div>

我在 Vincent 主题的帖子上报告了该问题：[Discourse Vincent theme - #274 by jsha](https://meta.discourse.org/t/discourse-vincent-theme/76662/274?u=jsha)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2021年十二月23日 19:32 UTC](https://meta.discourse.org/t/hosted-message-body-resizing-while-scrolling/209959/9 "2021-12-23T19:32:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
