diff --git a/config/dot/quickshell/modules/notifications/NotificationCard.qml b/config/dot/quickshell/modules/notifications/NotificationCard.qml index 91358fc..f6f4f14 100644 --- a/config/dot/quickshell/modules/notifications/NotificationCard.qml +++ b/config/dot/quickshell/modules/notifications/NotificationCard.qml @@ -177,12 +177,20 @@ Rectangle { id: settingsMenu anchorItem: settingsMenuButton - // A Column already measures itself from its children, and in Qt 6 both - // implicit sizes are read-only on a positioner -- assigning them makes - // the whole shell fail to load rather than just this menu. + // Popover's container is a plain Item and does not size itself from its + // children, so the window dimensions come from the column's implicit + // size — the same pattern TrayMenu uses. Rows take their *actual* width + // from the window in the other direction; the two chains are + // independent, so there is no binding loop. + implicitWidth: Math.max(menuBody.implicitWidth + contentPadding * 2, 200) + implicitHeight: menuBody.implicitHeight + contentPadding * 2 + Column { + id: menuBody + width: parent.width + TrayMenuRow { - id: notificationSettings + width: parent.width label: "Notification settings" onActivated: { ShellState.openSettings("notifications");