@@ -243,7 +243,7 @@ const app = {
243243 const vectorDataRow = document . createElement ( 'tr' ) ;
244244 let rowHtml = `
245245 <td></td>
246- <td class="vector-data-cell is-size-6 has-text-centered ">
246+ <td class="vector-data-cell is-size-6 has-text-centered py-4 ">
247247 ${ this . generateCalculatedVectorString ( item ) }
248248 </td>
249249 ` ;
@@ -252,11 +252,11 @@ const app = {
252252 const colKey = `${ this . currentIndex } -col-${ groupIdx } ` ;
253253 const isExpanded = this . expandedFolds . has ( colKey ) ;
254254
255- rowHtml += `<td class="vector-data-cell is-size-6 has-text-centered ">${ advGroup . primary . vector_string || 'NA' } </td>` ;
255+ rowHtml += `<td class="vector-data-cell is-size-6 has-text-centered py-4 ">${ advGroup . primary . vector_string || 'NA' } </td>` ;
256256
257257 if ( isExpanded && advGroup . secondaries ) {
258258 advGroup . secondaries . forEach ( sec => {
259- rowHtml += `<td class="vector-data-cell is-size-6 has-text-centered" style="background-color: #fafafa;">${ sec . vector_string || 'NA' } </td>` ;
259+ rowHtml += `<td class="vector-data-cell is-size-6 has-text-centered py-4 " style="background-color: #fafafa;">${ sec . vector_string || 'NA' } </td>` ;
260260 } ) ;
261261 }
262262 } ) ;
@@ -380,27 +380,27 @@ const app = {
380380 this . renderBody ( item ) ;
381381 } ,
382382
383- pickAdvisory ( groupIdx , type , secIdx = null ) {
384- const item = curationItems [ this . currentIndex ] ;
385- let targetAdvisory ;
383+ pickAdvisory ( groupIdx , type , secIdx = null ) {
384+ const item = curationItems [ this . currentIndex ] ;
385+ let targetAdvisory ;
386386
387- if ( type === 'primary' ) {
388- targetAdvisory = item . advisories [ groupIdx ] . primary . vector ;
389- } else if ( type === 'secondary' ) {
390- targetAdvisory = item . advisories [ groupIdx ] . secondaries [ secIdx ] . vector ;
391- }
387+ if ( type === 'primary' ) {
388+ targetAdvisory = item . advisories [ groupIdx ] . primary . vector ;
389+ } else if ( type === 'secondary' ) {
390+ targetAdvisory = item . advisories [ groupIdx ] . secondaries [ secIdx ] . vector ;
391+ }
392392
393- for ( const [ cat , metrics ] of Object . entries ( cvss_mapping [ item . cvss ] ) ) {
394- for ( const metricKey of Object . keys ( metrics ) ) {
395- if ( targetAdvisory [ metricKey ] !== undefined && targetAdvisory [ metricKey ] !== '' ) {
396- this . userStates [ this . currentIndex ] [ metricKey ] = String ( targetAdvisory [ metricKey ] ) ;
397- } else {
398- this . userStates [ this . currentIndex ] [ metricKey ] = '' ;
393+ for ( const [ cat , metrics ] of Object . entries ( cvss_mapping [ item . cvss ] ) ) {
394+ for ( const metricKey of Object . keys ( metrics ) ) {
395+ if ( targetAdvisory [ metricKey ] !== undefined && targetAdvisory [ metricKey ] !== '' ) {
396+ this . userStates [ this . currentIndex ] [ metricKey ] = String ( targetAdvisory [ metricKey ] ) ;
397+ } else {
398+ this . userStates [ this . currentIndex ] [ metricKey ] = '' ;
399+ }
399400 }
400401 }
401- }
402- this . renderBody ( item ) ;
403- } ,
402+ this . renderBody ( item ) ;
403+ } ,
404404
405405 resetCurrentCuration ( ) {
406406 const item = curationItems [ this . currentIndex ] ;
0 commit comments