@@ -179,6 +179,7 @@ class ReplyWithHeader {
179
179
// Originally, there's no <br> after the (unindented) cite prefix.
180
180
// With the table style, it looks better with an extra empty line (like everybody else has it).
181
181
div . insertAdjacentElement ( positionBeforeEnd , this . _createElement ( 'br' ) ) ;
182
+ div . insertAdjacentElement ( positionAfterBegin , this . _createElement ( 'br' ) ) ;
182
183
183
184
// blockquote
184
185
if ( await rwhSettings . isCleanAllBlockQuoteColor ( ) ) { // all
@@ -194,15 +195,10 @@ class ReplyWithHeader {
194
195
if ( this . isForward ) {
195
196
let mozForwardContainer = this . _getByClassName ( 'moz-forward-container' ) ;
196
197
this . _cleanNodesUpToClassName ( mozForwardContainer , targetNodeClassName ) ;
197
-
198
- // Insert 2 <br> before the headers to make it look like a reply does.
199
- mozForwardContainer . insertAdjacentElement ( positionAfterBegin , this . _createElement ( 'br' ) ) ;
200
- mozForwardContainer . insertAdjacentElement ( positionAfterBegin , this . _createElement ( 'br' ) ) ;
201
-
202
- // There are 2 <br> originally, but none for reply mode.
203
- // We add one for replies, so let's remove one for forwards to make it even.
204
- let nextBr = mozForwardContainer . querySelector ( "div.moz-email-headers-table + br" ) ;
205
- nextBr ?. remove ( ) ;
198
+
199
+ // Insert 2 <br> before the headers to make it look like a reply does.
200
+ mozForwardContainer . insertAdjacentElement ( positionAfterBegin , this . _createElement ( 'br' ) ) ;
201
+ mozForwardContainer . insertAdjacentElement ( positionAfterBegin , this . _createElement ( 'br' ) ) ;
206
202
}
207
203
208
204
return {
@@ -262,7 +258,6 @@ class ReplyWithHeader {
262
258
}
263
259
}
264
260
265
-
266
261
this . #text = textLines . join ( '\r\n' ) ;
267
262
return {
268
263
plainTextBody : this . #text
@@ -277,10 +272,19 @@ class ReplyWithHeader {
277
272
let rwhHeaders = '<div id="rwhHeaders"' ;
278
273
if ( await rwhSettings . isHeaderHtmlPrefixLine ( ) ) {
279
274
let borderColor = await rwhSettings . getHeaderHtmlPrefixLineColor ( ) ;
280
- rwhHeaders += ` style="border:none;border-top:solid ${ borderColor } 1.0pt;padding:3.0pt 0cm 0cm 0cm"`
275
+ rwhHeaders += ` style="border:none;border-top:solid ${ borderColor } 1.0pt;padding:3.0pt 0cm 0cm 0cm;width:100% "`
281
276
}
282
277
rwhHeaders += '>' ;
283
278
279
+ // font size
280
+ let fontSizeStyle = '' ;
281
+ if ( await rwhSettings . isHeaderHtmlFontSize ( ) ) {
282
+ let fontSizeValue = await rwhSettings . getHeaderHtmlFontSizeValue ( ) ?? null ;
283
+ if ( fontSizeValue ) {
284
+ fontSizeStyle = `;font-size:${ fontSizeValue } ` ;
285
+ }
286
+ }
287
+
284
288
headerLabelSeqValues . forEach ( function ( hdrKey , _ ) {
285
289
if ( hdrKey == 'reply-to' && this . isReply ) {
286
290
return ;
@@ -292,7 +296,7 @@ class ReplyWithHeader {
292
296
}
293
297
294
298
if ( headers [ hdrKey ] ) {
295
- rwhHeaders += '<p style="margin:0cm"><span><b>' + lbl + '</b> ' + headers [ hdrKey ] + '</span></p>' ;
299
+ rwhHeaders += '<p style="margin:0cm' + fontSizeStyle + ' "><span><b>' + lbl + '</b> ' + headers [ hdrKey ] + '</span></p>' ;
296
300
}
297
301
} , this ) ;
298
302
0 commit comments