|
1241 | 1241 |
|
1242 | 1242 | .expert-editor-controls { |
1243 | 1243 | display: grid; |
1244 | | - grid-template-columns: repeat(3, minmax(0, 244px)); |
| 1244 | + grid-template-columns: repeat(2, minmax(0, 1fr)); |
1245 | 1245 | gap: 8px; |
1246 | 1246 | align-items: end; |
1247 | 1247 | } |
1248 | 1248 |
|
1249 | 1249 | .expert-output-toolbar { |
1250 | | - display: flex; |
1251 | | - justify-content: flex-end; |
1252 | | - margin-top: 14px; |
| 1250 | + display: none; |
1253 | 1251 | } |
1254 | 1252 |
|
1255 | 1253 | .expert-output-grid { |
1256 | 1254 | display: grid; |
1257 | | - grid-template-columns: minmax(420px, 0.9fr) minmax(320px, 0.72fr) minmax(460px, 1.18fr); |
| 1255 | + grid-template-columns: repeat(3, minmax(0, 1fr)); |
1258 | 1256 | gap: 12px; |
1259 | 1257 | align-items: start; |
1260 | | - margin-top: 8px; |
| 1258 | + margin-bottom: 10px; |
1261 | 1259 | } |
1262 | 1260 |
|
1263 | 1261 | .expert-output-column { |
| 1262 | + display: grid; |
| 1263 | + gap: 8px; |
| 1264 | + align-content: start; |
1264 | 1265 | min-width: 0; |
1265 | 1266 | } |
1266 | 1267 |
|
|
1269 | 1270 | } |
1270 | 1271 |
|
1271 | 1272 | .expert-output-column.ha-card-preview pre { |
1272 | | - min-height: 188px; |
| 1273 | + min-height: 0; |
| 1274 | + max-height: 220px; |
| 1275 | + overflow: auto; |
1273 | 1276 | } |
1274 | 1277 |
|
1275 | 1278 | .expert-output-column.expert-detail-column { |
|
1324 | 1327 |
|
1325 | 1328 | .expert-grid-top-controls { |
1326 | 1329 | display: grid; |
1327 | | - grid-template-columns: repeat(2, minmax(88px, 128px)) minmax(132px, 192px); |
| 1330 | + grid-template-columns: repeat(2, minmax(0, 1fr)); |
1328 | 1331 | gap: 8px; |
1329 | 1332 | align-items: end; |
1330 | | - justify-content: start; |
| 1333 | + } |
| 1334 | + |
| 1335 | + .expert-grid-zoom-control { |
| 1336 | + grid-column: 1 / -1; |
1331 | 1337 | } |
1332 | 1338 |
|
1333 | 1339 | .expert-grid-axis-control { |
|
1366 | 1372 | } |
1367 | 1373 |
|
1368 | 1374 | .expert-editor-controls .wide { |
1369 | | - grid-column: span 2; |
| 1375 | + grid-column: 1 / -1; |
1370 | 1376 | } |
1371 | 1377 |
|
1372 | 1378 | .expert-editor-controls .span-2 { |
1373 | | - grid-column: span 2; |
| 1379 | + grid-column: 1 / -1; |
1374 | 1380 | } |
1375 | 1381 |
|
1376 | 1382 | .expert-editor-controls .field-pair { |
|
1393 | 1399 |
|
1394 | 1400 | .expert-number-controls { |
1395 | 1401 | display: grid; |
1396 | | - grid-template-columns: repeat(4, 72px); |
| 1402 | + grid-template-columns: repeat(4, minmax(0, 1fr)); |
1397 | 1403 | gap: 8px; |
1398 | 1404 | align-items: end; |
1399 | 1405 | } |
|
1411 | 1417 | } |
1412 | 1418 |
|
1413 | 1419 | .expert-number-controls input { |
1414 | | - width: 72px; |
| 1420 | + width: 100%; |
1415 | 1421 | min-height: 34px; |
1416 | 1422 | padding: 6px 4px; |
1417 | 1423 | text-align: center; |
|
1443 | 1449 | } |
1444 | 1450 |
|
1445 | 1451 | .expert-output-grid .expert-editor-actions button { |
1446 | | - flex: 0 0 184px; |
| 1452 | + flex: 1 1 calc(50% - 6px); |
| 1453 | + min-width: 0; |
| 1454 | + } |
| 1455 | + |
| 1456 | + .expert-editor-status { |
| 1457 | + display: grid; |
| 1458 | + gap: 8px; |
| 1459 | + margin-top: 10px; |
1447 | 1460 | } |
1448 | 1461 |
|
1449 | 1462 | @media (max-width: 720px) { |
@@ -3672,35 +3685,28 @@ <h2 class="entity-section-title" data-i18n="heading.expertEditor">Expert editor |
3672 | 3685 | <div id="expert-template-palette" class="expert-template-palette" aria-label="Expert editor templates" data-i18n-aria-label="aria.expertTemplates"></div> |
3673 | 3686 | </aside> |
3674 | 3687 | <section class="expert-editor-surface" aria-label="Expert editor surface" data-i18n-aria-label="aria.expertSurface"> |
3675 | | - <div class="expert-grid-frame"> |
3676 | | - <div class="expert-grid-top-controls"> |
3677 | | - <div class="expert-grid-axis-control expert-grid-columns-control"> |
3678 | | - <label for="expert-grid-columns" data-i18n="label.gridColumns">X</label> |
3679 | | - <input id="expert-grid-columns" type="range" min="0" max="5" value="0"> |
3680 | | - <output id="expert-grid-columns-output" for="expert-grid-columns">0</output> |
3681 | | - </div> |
3682 | | - <div class="expert-grid-axis-control expert-grid-rows-control"> |
3683 | | - <label for="expert-grid-rows" data-i18n="label.gridRows">Y</label> |
3684 | | - <input id="expert-grid-rows" type="range" min="0" max="5" value="0"> |
3685 | | - <output id="expert-grid-rows-output" for="expert-grid-rows">0</output> |
3686 | | - </div> |
3687 | | - <div class="expert-grid-axis-control expert-grid-zoom-control"> |
3688 | | - <label for="expert-grid-zoom" data-i18n="label.gridZoom">Zoom</label> |
3689 | | - <input id="expert-grid-zoom" type="range" min="75" max="150" step="5" value="100"> |
3690 | | - <output id="expert-grid-zoom-output" for="expert-grid-zoom">100%</output> |
3691 | | - </div> |
3692 | | - </div> |
3693 | | - <div class="expert-grid-body"> |
3694 | | - <div class="expert-editor-canvas-row"> |
3695 | | - <div id="expert-editor-dropzone" class="expert-editor-dropzone"></div> |
3696 | | - </div> |
3697 | | - </div> |
3698 | | - </div> |
3699 | | - <div class="expert-output-toolbar"> |
3700 | | - <button id="reset-expert-preview" class="preview-reset-button" type="button" data-i18n="button.resetPreview">Reset preview</button> |
3701 | | - </div> |
3702 | 3688 | <div class="expert-output-grid"> |
| 3689 | + <div class="expert-output-column expert-detail-column"> |
| 3690 | + <aside id="expert-selected-card-details" class="expert-selected-card-details" aria-live="polite"></aside> |
| 3691 | + </div> |
3703 | 3692 | <div class="expert-output-column"> |
| 3693 | + <div class="expert-grid-top-controls"> |
| 3694 | + <div class="expert-grid-axis-control expert-grid-columns-control"> |
| 3695 | + <label for="expert-grid-columns" data-i18n="label.gridColumns">X</label> |
| 3696 | + <input id="expert-grid-columns" type="range" min="0" max="5" value="0"> |
| 3697 | + <output id="expert-grid-columns-output" for="expert-grid-columns">0</output> |
| 3698 | + </div> |
| 3699 | + <div class="expert-grid-axis-control expert-grid-rows-control"> |
| 3700 | + <label for="expert-grid-rows" data-i18n="label.gridRows">Y</label> |
| 3701 | + <input id="expert-grid-rows" type="range" min="0" max="5" value="0"> |
| 3702 | + <output id="expert-grid-rows-output" for="expert-grid-rows">0</output> |
| 3703 | + </div> |
| 3704 | + <div class="expert-grid-axis-control expert-grid-zoom-control"> |
| 3705 | + <label for="expert-grid-zoom" data-i18n="label.gridZoom">Zoom</label> |
| 3706 | + <input id="expert-grid-zoom" type="range" min="75" max="150" step="5" value="100"> |
| 3707 | + <output id="expert-grid-zoom-output" for="expert-grid-zoom">100%</output> |
| 3708 | + </div> |
| 3709 | + </div> |
3704 | 3710 | <div class="expert-editor-controls"> |
3705 | 3711 | <div class="field-pair"> |
3706 | 3712 | <label for="expert-card-name" data-i18n="label.expertCardName">Expert card name</label> |
@@ -3754,19 +3760,26 @@ <h2 class="entity-section-title" data-i18n="heading.expertEditor">Expert editor |
3754 | 3760 | <button id="edit-expert-field" type="button" data-i18n="button.editSelected">Edit selected</button> |
3755 | 3761 | <button id="arrange-expert-fields" type="button" data-i18n="button.autoArrange">Auto arrange</button> |
3756 | 3762 | <button id="reset-expert-surface-size" type="button" data-i18n="button.resetSize">Reset size</button> |
| 3763 | + <button id="reset-expert-preview" class="preview-reset-button" type="button" data-i18n="button.resetPreview">Reset preview</button> |
3757 | 3764 | <button id="clear-expert-fields" type="button" data-i18n="button.clearPreview">Clear preview</button> |
3758 | 3765 | </div> |
3759 | 3766 | </div> |
3760 | | - <div class="expert-output-column expert-detail-column"> |
3761 | | - <aside id="expert-selected-card-details" class="expert-selected-card-details" aria-live="polite"></aside> |
3762 | | - <output id="expert-editor-summary" aria-live="polite"></output> |
3763 | | - <div id="expert-field-list" class="expert-field-list" aria-live="polite"></div> |
3764 | | - </div> |
3765 | 3767 | <div class="expert-output-column ha-card-preview"> |
3766 | 3768 | <label for="expert-editor-preview" data-i18n="label.expertHaCardCode">Expert HA card code</label> |
3767 | 3769 | <pre id="expert-editor-preview" aria-live="polite"></pre> |
3768 | 3770 | </div> |
3769 | 3771 | </div> |
| 3772 | + <div class="expert-grid-frame"> |
| 3773 | + <div class="expert-grid-body"> |
| 3774 | + <div class="expert-editor-canvas-row"> |
| 3775 | + <div id="expert-editor-dropzone" class="expert-editor-dropzone"></div> |
| 3776 | + </div> |
| 3777 | + </div> |
| 3778 | + </div> |
| 3779 | + <div class="expert-editor-status"> |
| 3780 | + <output id="expert-editor-summary" aria-live="polite"></output> |
| 3781 | + <div id="expert-field-list" class="expert-field-list" aria-live="polite"></div> |
| 3782 | + </div> |
3770 | 3783 | </section> |
3771 | 3784 | </div> |
3772 | 3785 | </div> |
|
0 commit comments