♻️ refactor(widget/notification): remove unused variable, use latest pango instead of specifying 1.0

This commit is contained in:
retrozinndev
2025-06-08 16:47:10 -03:00
parent 316b7c840e
commit c4f6dba77c
2 changed files with 21 additions and 23 deletions
+1 -3
View File
@@ -4,11 +4,9 @@ import { Separator } from "./Separator";
import { HistoryNotification, Notifications } from "../scripts/notifications";
import { GLib } from "astal";
import { getAppIcon } from "../scripts/apps";
import Pango from "gi://Pango?version=1.0";
import Pango from "gi://Pango";
export let NOTIFICATION_MAX_WORD_CHAR_SIZE = 25;
function getNotificationImage(notif: AstalNotifd.Notification|HistoryNotification): (string|undefined) {
const img = notif.image || notif.appIcon;