can’t the default number of notifications be 2-3numbers less so that no scroll bar may be needed? it’d be much nicer without scrollbar.
What screen resolution are you running at? Which browser is this? Do you have any level of browser zoom set?
On my browser the height and number of visible notification adjusts based on the height of the window.
no zooming, I just pressed ctrl+0 to be sure.
does screen resolution matter? it’s the default, 1366*768.
This calculation varies, with some message sets it can overextend depending on the titles of the messages. It’s a complicated thing.
I see, but with 7 messages instead of 10, it’d be shorter. I guess shorter than height of the screen is nicer and more functional than scroll bar, isn’t it?
You’re missing the point, the number of entries isn’t fixed at 10.
On my laptop screen I see 12, on my monitor I see 13. Neither has a scroll bar.
It’s not a UX issue, and it’s hard to say why you have a scrollbar because you’ve hidden the notifications.
Maybe trim anything after the fourth row to reduce the chance?
Ok, I see. but as I remember I’ve always seen the scroll bar (both in our forum and here in meta). of course, I’ve always used the same laptop!
Shouldn’t the text be trimmed to ensure it doesn’t overextend? The trim would only affect the topic titles, which the user is generally familiar with.
It’s not only topic titles that will push text to the next line…

Username, notification type, topic title, and locale are all factors that make the height of each notification variable… so it’s very unpredictable.
I think we could only really avoid the scrollbar (for most screens) if we limited the number of notifications to around 10 (I can currently see 21).
I think there are three possible solutions to this:
-
bcced5b… and 7 others Reserved usernames:…
Take the first user and trim it if its too long -
Chaboi_3000 and 7 others Reserved usernames:…
Take the next short username if the first one is too long - if all usernames are too long, trim the first one -
8 people Reserved usernames:…
Just state the number of users if 2 or more (and trim if only one which is too long)
PS: A little colour would be so nice in the notifications icons ![]()
I agree with the colors.
All of these options are reducing information for the sake of not having a scrollbar, which feels really extreme. We don’t have immediate plans to do so, but If anything we’d probably double-down on the scrollbar and make the notification panel scroll infinitely.
Colors are off-topic and are very easy in a theme.
.user-menu .notifications {
.d-icon-heart {
color: salmon;
}
}
We have a lot of notification types, and we intentionally limit our color palette so it’s easier to define your own… so we’d never really do full color-coding by default.
我刚刚进行了更新,移除了通知下拉菜单中的滚动条。可显示的通知数量将根据浏览器高度自动调整。您现在可以在 Meta 上体验这一功能。
我认为 @awesomerobot 在这里过于谦虚了。
我们过去也根据浏览器高度调整通知数量,但为了避免出现滚动条或内容溢出,不得不进行保守估计。
在移动端(至少是 iOS 上),这常常导致底部出现较大的垂直空白:
Kris 的“黑暗魔法”/CSS 技巧解决了这个问题——现在它能正确显示尽可能多的通知。
这个问题困扰我很久了……感谢你的改进!这真是一个令人愉快的惊喜!




