@@ -181,17 +181,21 @@ class HaPanelDevTemplate extends LitElement {
181
181
> `
182
182
: nothing }
183
183
${ this . _templateResult
184
- ? html `${ this . hass . localize (
185
- "ui.panel.developer-tools.tabs.templates.result_type"
186
- ) } :
187
- ${ resultType }
188
- <!- - prettier- ignore - - >
189
- <pre class= "rendered ${ classMap ( {
190
- [ resultType ] : resultType ,
191
- } ) } "
192
- > ${ type === "object"
193
- ? JSON . stringify ( this . _templateResult . result , null , 2 )
194
- : this . _templateResult . result } </ pre>
184
+ ? html `<pre
185
+ class= "rendered ${ classMap ( {
186
+ [ resultType ] : resultType ,
187
+ } ) } "
188
+ >
189
+ ${ type === "object"
190
+ ? JSON . stringify ( this . _templateResult . result , null , 2 )
191
+ : this . _templateResult . result } </ pre
192
+ >
193
+ <p>
194
+ ${ this . hass . localize (
195
+ "ui.panel.developer-tools.tabs.templates.result_type"
196
+ ) } :
197
+ ${ resultType }
198
+ </ p>
195
199
${ this . _templateResult . listeners . time
196
200
? html `
197
201
<p>
@@ -249,11 +253,11 @@ class HaPanelDevTemplate extends LitElement {
249
253
</ ul>
250
254
`
251
255
: ! this . _templateResult . listeners . time
252
- ? html `<span class= "all_listeners" >
256
+ ? html `<p class= "all_listeners" >
253
257
${ this . hass . localize (
254
258
"ui.panel.developer-tools.tabs.templates.no_listeners"
255
259
) }
256
- </ span > `
260
+ </ p > `
257
261
: nothing } `
258
262
: nothing }
259
263
</ div>
@@ -281,6 +285,10 @@ class HaPanelDevTemplate extends LitElement {
281
285
max (16px , env (safe-area-inset-left));
282
286
}
283
287
288
+ .content .horizontal {
289
+ --code-mirror-max-height : calc (100vh - 389px );
290
+ }
291
+
284
292
ha-card {
285
293
margin-bottom : 16px ;
286
294
}
@@ -293,8 +301,9 @@ class HaPanelDevTemplate extends LitElement {
293
301
color : var (--primary-color );
294
302
}
295
303
296
- .horizontal .edit-pane {
297
- max-width : 50% ;
304
+ .content .horizontal > * {
305
+ width : 50% ;
306
+ margin-bottom : 0px ;
298
307
}
299
308
300
309
.render-spinner {
@@ -316,15 +325,29 @@ class HaPanelDevTemplate extends LitElement {
316
325
white-space : pre-wrap;
317
326
background-color : var (--secondary-background-color );
318
327
padding : 8px ;
328
+ margin-top : 0 ;
329
+ margin-bottom : 0 ;
319
330
direction : ltr;
331
+ overflow : auto;
332
+ }
333
+
334
+ p ,
335
+ ul {
336
+ margin-block-end : 0 ;
337
+ }
338
+
339
+ .content .horizontal .render-pane .card-content {
340
+ display : flex;
341
+ flex-direction : column;
342
+ max-height : calc (var (--code-mirror-max-height ) + 47px );
320
343
}
321
344
322
345
.all_listeners {
323
346
color : var (--warning-color );
324
347
}
325
348
326
349
@media all and (max-width : 870px ) {
327
- .render-pane {
350
+ .content ha-card {
328
351
max-width : 100% ;
329
352
}
330
353
}
0 commit comments