提交 43de98c8 编写于 作者: B Benjamin Pasero

notifications - max size tweaks

上级 c411180c
......@@ -8,7 +8,7 @@
width: 600px;
z-index: 1000;
right: 8px;
bottom: 32px; /* above status bar */
bottom: 30px; /* above status bar */
display: none;
background: #323232; /* TODO@notification make themable */
overflow: hidden;
......
......@@ -205,6 +205,10 @@ export class NotificationsCenter extends Themable {
availableHeight -= 22; // adjust for status bar
}
if (this.partService.isVisible(Parts.TITLEBAR_PART)) {
availableHeight -= 22; // adjust for title bar
}
availableHeight -= (2 * 12); // adjust for paddings top and bottom
if (maxHeight > availableHeight) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册