|
33 | 33 | </q-card> |
34 | 34 | <q-card> |
35 | 35 | <q-card-section> |
36 | | - <div> |
37 | | - <ul> |
38 | | - <li v-if="invoice"> |
39 | | - <div style="padding: 5px; word-wrap: break-word;"> |
40 | | - <strong>Invoice:</strong>{% raw %} {{ invoice }}{% endraw %} |
41 | | - </div> |
42 | | - </li> |
43 | | - <li v-if="lnurl"> |
44 | | - <div style="padding: 5px; word-wrap: break-word;"> |
45 | | - <strong>LNURL:</strong>{% raw %} {{ lnurl }}{% endraw %} |
46 | | - </div> |
47 | | - </li> |
48 | | - <li v-if="lnaddress"> |
49 | | - <div style="padding: 5px; word-wrap: break-word;"> |
50 | | - <strong>Lightning Address:</strong>{% raw %} {{ lnaddress }}{% endraw %} |
51 | | - </div> |
52 | | - </li> |
53 | | - </ul> |
54 | | - </div> |
| 36 | + <div style="word-wrap: break-word;" v-if="invoice"> |
| 37 | + <strong>Invoice:</strong>{% raw %} {{ invoice }}{% endraw %} |
55 | 38 | <!-- invoice data only content --> |
56 | | - <div style="padding:5px;" v-if="invoiceData.length > 0" v-html="invoiceData"></div> |
57 | | - <!-- lnurl only content --> |
58 | | - <div style="padding:5px;" v-if="lnurlData.length > 0" v-html="lnurlData"></div> |
59 | | - <!-- ln address data only content --> |
| 39 | + <div v-if="invoiceData.length > 0" v-html="invoiceData"></div> |
| 40 | + </div> |
| 41 | + <div style="word-wrap: break-word;" v-if="lnurl"> |
| 42 | + <strong>LNURL:</strong>{% raw %} {{ lnurl }}{% endraw %} |
| 43 | + <!-- lnurl only content --> |
| 44 | + <div v-if="lnurlData.length > 0" v-html="lnurlData"></div> |
| 45 | + </div> |
| 46 | + <div style="word-wrap: break-word;" v-if="lnaddress"> |
| 47 | + <strong>Lightning Address:</strong>{% raw %} {{ lnaddress }}{% endraw %} |
| 48 | + <!-- ln address data only content --> |
60 | 49 | <div v-if="Object.keys(lnaddressData).length > 0" v-html="lnaddressData"></div> |
| 50 | + </div> |
61 | 51 | </q-card-section> |
62 | 52 | </q-card> |
63 | 53 | </div> |
@@ -165,7 +155,7 @@ <h6 class="text-subtitle1 q-my-none"> |
165 | 155 | // console.log(jsonData) |
166 | 156 | let html = '<ul>'; |
167 | 157 | for (const key in jsonData) { |
168 | | - html += `<li style="padding:5px;word-wrap: break-word;"><strong>${key}</strong> : `; |
| 158 | + html += `<li style="word-wrap: break-word;"><strong>${key}</strong> : `; |
169 | 159 | if (typeof jsonData[key] === 'object') { |
170 | 160 | html += await this.formatJSONToHTML(jsonData[key]); |
171 | 161 | } else { |
|
0 commit comments