|
14 | 14 |
|
15 | 15 | <t t-name="o-spreadsheet-ConditionalFormattingPanelPreview"> |
16 | 16 | <div |
17 | | - class="o-cf-preview d-flex position-relative" |
| 17 | + class="o-cf-preview d-flex position-relative align-items-center" |
18 | 18 | t-att-class="{ 'o-cf-dragging': dragAndDrop.draggedItemId === cf.id }" |
19 | 19 | t-att-style="getPreviewDivStyle(cf)" |
20 | 20 | t-att-data-id="cf.id" |
21 | 21 | t-on-click="(ev) => props.onPreviewClick(cf)" |
22 | 22 | t-on-mousedown="(ev) => this.onMouseDown(cf, ev)"> |
23 | | - <div class="position-relative h-100 w-100 d-flex align-items-center"> |
24 | | - <div class="o-cf-drag-handle h-100 position-absolute d-flex align-items-center text-muted"> |
25 | | - <t t-call="o-spreadsheet-Icon.THIN_DRAG_HANDLE"/> |
| 23 | + <div class="o-cf-drag-handle h-100 position-absolute d-flex align-items-center text-muted"> |
| 24 | + <t t-call="o-spreadsheet-Icon.THIN_DRAG_HANDLE"/> |
| 25 | + </div> |
| 26 | + <t t-if="cf.rule.type==='IconSetRule'"> |
| 27 | + <div class="o-cf-preview-icon d-flex justify-content-around align-items-center me-3"> |
| 28 | + <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.upper].template}}"/> |
| 29 | + <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.middle].template}}"/> |
| 30 | + <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.lower].template}}"/> |
26 | 31 | </div> |
27 | | - <t t-if="cf.rule.type==='IconSetRule'"> |
28 | | - <div class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2"> |
29 | | - <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.upper].template}}"/> |
30 | | - <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.middle].template}}"/> |
31 | | - <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.lower].template}}"/> |
32 | | - </div> |
33 | | - </t> |
34 | | - <t t-else=""> |
35 | | - <div |
36 | | - t-att-style="getPreviewImageStyle(cf.rule)" |
37 | | - class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2"> |
38 | | - 123 |
39 | | - </div> |
40 | | - </t> |
41 | | - <div class="o-cf-preview-description"> |
42 | | - <div class="o-cf-preview-ruletype"> |
43 | | - <div class="o-cf-preview-description-rule text-truncate"> |
44 | | - <t t-esc="getDescription(cf)"/> |
45 | | - </div> |
46 | | - </div> |
47 | | - <div class="o-cf-preview-range text-truncate" t-esc="cf.ranges"/> |
| 32 | + </t> |
| 33 | + <t t-else=""> |
| 34 | + <div |
| 35 | + t-att-style="getPreviewImageStyle(cf.rule)" |
| 36 | + class="o-cf-preview-icon d-flex justify-content-around align-items-center me-3 flex-shrink-0"> |
| 37 | + 123 |
48 | 38 | </div> |
49 | | - <div class="o-cf-delete"> |
50 | | - <div |
51 | | - class="o-cf-delete-button text-muted" |
52 | | - t-on-click.stop="(ev) => this.deleteConditionalFormat(cf, ev)" |
53 | | - title="Remove rule"> |
54 | | - <t t-call="o-spreadsheet-Icon.TRASH"/> |
| 39 | + </t> |
| 40 | + <div class="o-cf-preview-description me-3 overflow-auto"> |
| 41 | + <div class="o-cf-preview-ruletype"> |
| 42 | + <div class="o-cf-preview-description-rule text-truncate"> |
| 43 | + <t t-esc="getDescription(cf)"/> |
55 | 44 | </div> |
56 | 45 | </div> |
| 46 | + <div class="o-cf-preview-range text-truncate" t-esc="cf.ranges"/> |
| 47 | + </div> |
| 48 | + <div class="o-cf-delete ms-auto"> |
| 49 | + <div |
| 50 | + class="o-cf-delete-button text-muted" |
| 51 | + t-on-click.stop="(ev) => this.deleteConditionalFormat(cf, ev)" |
| 52 | + title="Remove rule"> |
| 53 | + <t t-call="o-spreadsheet-Icon.TRASH"/> |
| 54 | + </div> |
57 | 55 | </div> |
58 | 56 | </div> |
59 | 57 | </t> |
|
0 commit comments