File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/routes/-index/-components Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ export function MissionItem({
7575 id = { `mission-${ missionGuid } ` }
7676 value = { missionGuid }
7777 >
78- < AccordionTrigger className = "trigger bg-muted-foreground/5 px -2 py-0 rounded hover:bg-muted-foreground/15 hover:no-underline" >
79- < span className = "flex gap-1 items-center max-w-[29.375rem] overflow-hidden py-0.5" >
78+ < AccordionTrigger className = "trigger bg-muted-foreground/5 pr -2 py-0 rounded hover:bg-muted-foreground/15 hover:no-underline" >
79+ < span className = "mission-preview flex gap-1 items-center max-w-[29.375rem] overflow-hidden px-2 py-0.5" >
8080 { ! mission . zone . iconUrl ? (
8181 < span
8282 className = { cn (
@@ -221,7 +221,11 @@ function ScreenshotButton({ id }: { id: string }) {
221221 return
222222 }
223223
224- const $element = document . getElementById ( id )
224+ let $element = document . getElementById ( id )
225+
226+ if ( $element ?. getAttribute ( 'data-state' ) === 'closed' ) {
227+ $element = document . querySelector ( `#${ id } .mission-preview` )
228+ }
225229
226230 if ( ! $element ) {
227231 return
You can’t perform that action at this time.
0 commit comments