💥 ags(notifications): fix some history size when there's a single notification

This commit is contained in:
retrozinndev
2025-03-23 12:39:35 -03:00
parent b10aa363b2
commit 1a8a54c30a
6 changed files with 31 additions and 43 deletions
-2
View File
@@ -1,7 +1,6 @@
import { Astal, Gtk, Widget } from "astal/gtk3";
import AstalNotifd from "gi://AstalNotifd";
import { Separator } from "./Separator";
import Pango from "gi://Pango";
import { HistoryNotification } from "../scripts/notifications";
import { GLib } from "astal";
@@ -119,7 +118,6 @@ export function NotificationWidget(notification: AstalNotifd.Notification|number
xalign: 0,
truncate: false,
wrap: true,
wrapMode: Pango.WrapMode.WORD,
label: notification.body.replace(/\&/g, "&")
} as Widget.LabelProps)
]