@@ -238,7 +238,6 @@ export class JSONEditor extends Common.ObjectWrapper.eventMixin<EventTypes, type
238238 this . contentElement , event => this . #handlePopoverDescriptions( event ) , 'protocol-monitor.hint' ) ;
239239 this . #hintPopoverHelper. setDisableOnClick ( true ) ;
240240 this . #hintPopoverHelper. setTimeout ( 300 ) ;
241- this . #hintPopoverHelper. setHasPadding ( true ) ;
242241 const targetManager = SDK . TargetManager . TargetManager . instance ( ) ;
243242 targetManager . addEventListener (
244243 SDK . TargetManager . Events . AVAILABLE_TARGETS_CHANGED , this . #handleAvailableTargetsChanged, this ) ;
@@ -468,7 +467,7 @@ export class JSONEditor extends Common.ObjectWrapper.eventMixin<EventTypes, type
468467 const replyArgs = elementData . replyArgs ;
469468 let popupContent = '' ;
470469 // replyArgs and type cannot get into conflict because replyArgs is attached to a command and type to a parameter
471- if ( replyArgs ) {
470+ if ( replyArgs && replyArgs . length > 0 ) {
472471 popupContent = tail + `Returns: ${ replyArgs } <br>` ;
473472 } else if ( type ) {
474473 popupContent = tail + `<br>Type: ${ type } <br>` ;
@@ -480,7 +479,7 @@ export class JSONEditor extends Common.ObjectWrapper.eventMixin<EventTypes, type
480479 box : hintElement . boxInWindow ( ) ,
481480 show : async ( popover : UI . GlassPane . GlassPane ) => {
482481 const popupElement = new ElementsComponents . CSSHintDetailsView . CSSHintDetailsView ( {
483- getMessage : ( ) => `<code>< span>${ head } </span></code >` ,
482+ getMessage : ( ) => `<span>${ head } </span>` ,
484483 getPossibleFixMessage : ( ) => popupContent ,
485484 getLearnMoreLink : ( ) =>
486485 `https://chromedevtools.github.io/devtools-protocol/tot/${ this . command . split ( '.' ) [ 0 ] } /` ,
0 commit comments