From e2f36091e2619e18cbe8781053b9d3cd94904a51 Mon Sep 17 00:00:00 2001 From: Beebles <102569435+beebls@users.noreply.github.com> Date: Fri, 26 Sep 2025 16:02:21 -0600 Subject: change to scrollpanelgroup --- frontend/src/components/AnnouncementsDisplay.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'frontend/src/components/AnnouncementsDisplay.tsx') diff --git a/frontend/src/components/AnnouncementsDisplay.tsx b/frontend/src/components/AnnouncementsDisplay.tsx index fa057045..c62a5d77 100644 --- a/frontend/src/components/AnnouncementsDisplay.tsx +++ b/frontend/src/components/AnnouncementsDisplay.tsx @@ -1,4 +1,4 @@ -import { DialogButton, Focusable, ModalRoot, PanelSection, showModal } from '@decky/ui'; +import { DialogButton, Focusable, ModalRoot, PanelSection, ScrollPanelGroup, showModal } from '@decky/ui'; import { lazy, useEffect, useMemo, useState } from 'react'; import { FaInfo, FaTimes } from 'react-icons/fa'; @@ -200,7 +200,19 @@ function AnnouncementModal({ } `} - + { + if (!evt?.detail?.button) return; + if (evt.detail.button === 2) { + closeModal?.(); + } + }} + >

{announcement.title}

onHide()}>Close Popup onHide()}>Close and Hide Announcement
- + ); } -- cgit v1.2.3