@@ -116,6 +116,8 @@ rcmail.render_structured_data = function() {
116
116
117
117
// If we had no special cases yet, we use ld2h
118
118
if ( didRender === false ) {
119
+ Jsonld2html . setTemplateOfType ( "https://ld2h/Default" , Jsonld2html . allTemplates . cardDefaultBootstrap ) ;
120
+ Jsonld2html . setSubtemplateOfType ( "https://ld2h/Default" , Jsonld2html . allSubtemplates . subDefaultBootstrap ) ;
119
121
const card = Jsonld2html . render ( jsonLd ) ;
120
122
structuredHtml = $ ( '<div id="structured-data-content">' ) . html ( card ) ;
121
123
}
@@ -125,7 +127,7 @@ rcmail.render_structured_data = function() {
125
127
messageObjects = $ ( 'div#message-objects' ) ;
126
128
var intervalId ;
127
129
if ( messageObjects !== null && structuredHtml !== null && structuredHtml !== '' ) {
128
- var structuredDataContainer = $ ( '<div class="info structured-data-container" style="background-color:#f1f1f1; width:100%;display:flex;flex-direction:column;">' ) ;
130
+ var structuredDataContainer = $ ( '<div class="info structured-data-container" style="width:100%;display:flex;flex-direction:column;">' ) ;
129
131
130
132
// Add button and toggle switch for "Live Location" if necessary
131
133
if ( jsonLd [ '@type' ] === 'Place' && 'liveUrl' in jsonLd ) {
@@ -154,7 +156,7 @@ rcmail.render_structured_data = function() {
154
156
checkboxLabel . append ( autoRefreshLocationToggle ) ;
155
157
checkboxLabel . append ( $ ( 'span.roundbutton' ) ) ;
156
158
157
- var refreshLocationDiv = $ ( '<div class="info refresh-location-div" style="background-color:#f1f1f1; width:100%;display:flex;flex-direction:row;padding:10px;margin-bottom:10px;">' ) ;
159
+ var refreshLocationDiv = $ ( '<div class="info refresh-location-div" style="width:100%;display:flex;flex-direction:row;padding:10px;margin-bottom:10px;">' ) ;
158
160
refreshLocationDiv . append ( refreshLocationButton ) ;
159
161
refreshLocationDiv . append ( checkboxLabel ) ;
160
162
0 commit comments