@@ -750,6 +750,7 @@ class AnnotationElement {
750750 data : {
751751 color : data . color ,
752752 titleObj : data . titleObj ,
753+ subjectObj : data . subjectObj ,
753754 modificationDate,
754755 contentsObj,
755756 richText : data . richText ,
@@ -2374,6 +2375,7 @@ class PopupAnnotationElement extends AnnotationElement {
23742375 container : this . container ,
23752376 color : this . data . color ,
23762377 titleObj : this . data . titleObj ,
2378+ subjectObj : this . data . subjectObj ,
23772379 modificationDate : this . data . modificationDate || this . data . creationDate ,
23782380 contentsObj : this . data . contentsObj ,
23792381 richText : this . data . richText ,
@@ -2455,6 +2457,8 @@ class PopupElement {
24552457
24562458 #titleObj = null ;
24572459
2460+ #subjectObj = null ;
2461+
24582462 #updates = null ;
24592463
24602464 #wasVisible = false ;
@@ -2468,6 +2472,7 @@ class PopupElement {
24682472 color,
24692473 elements,
24702474 titleObj,
2475+ subjectObj,
24712476 modificationDate,
24722477 contentsObj,
24732478 richText,
@@ -2479,6 +2484,7 @@ class PopupElement {
24792484 } ) {
24802485 this . #container = container ;
24812486 this . #titleObj = titleObj ;
2487+ this . #subjectObj = subjectObj ;
24822488 this . #contentsObj = contentsObj ;
24832489 this . #richText = richText ;
24842490 this . #parent = parent ;
@@ -2671,6 +2677,8 @@ class PopupElement {
26712677 opacity,
26722678 creationDate,
26732679 modificationDate,
2680+ titleObj : this . #titleObj,
2681+ subjectObj : this . #subjectObj,
26742682 } ;
26752683 }
26762684
@@ -2783,7 +2791,12 @@ class PopupElement {
27832791 const title = document . createElement ( "span" ) ;
27842792 title . className = "title" ;
27852793 header . append ( title ) ;
2786- ( { dir : title . dir , str : title . textContent } = this . #titleObj) ;
2794+ if ( this . #subjectObj?. str ) {
2795+ title . textContent = `${ this . #subjectObj. str } \u2014 ${ this . #titleObj. str } ` ;
2796+ title . dir = this . #subjectObj. dir ;
2797+ } else {
2798+ ( { dir : title . dir , str : title . textContent } = this . #titleObj) ;
2799+ }
27872800 }
27882801 popup . append ( header ) ;
27892802
0 commit comments