Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
display: none;
}
.o-cf-preview-icon {
position: absolute;
height: 50px;
width: 50px;
.o-icon {
Expand All @@ -26,12 +25,6 @@
}
}
.o-cf-preview-description {
left: 65px;
margin-bottom: auto;
margin-right: 8px;
margin-top: auto;
position: relative;
width: 142px;
.o-cf-preview-description-rule {
margin-bottom: 4px;
max-height: 2.8em;
Expand All @@ -41,16 +34,11 @@
font-size: 12px;
}
}
.o-cf-delete {
left: 90%;
top: 39%;
position: absolute;
}
&:not(:hover):not(.o-cf-dragging) .o-cf-drag-handle {
display: none !important;
}
.o-cf-drag-handle {
left: -8px;
left: 2px;
cursor: move;
.o-icon {
width: 6px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,45 @@
<t t-name="o-spreadsheet-ConditionalFormatPreview">
<t t-set="cf" t-value="props.conditionalFormat"/>
<div
class="o-cf-preview w-100 border-bottom"
class="o-cf-preview w-100 d-flex align-items-center border-bottom"
t-ref="cfPreview"
t-att-class="props.class"
t-att-data-id="cf.id"
t-on-click="props.onPreviewClick"
t-on-pointerdown="(ev) => this.onMouseDown(ev)">
<div class="position-relative h-100 w-100 d-flex align-items-center">
<div class="o-cf-drag-handle h-100 position-absolute d-flex align-items-center o-button-icon">
<t t-call="o-spreadsheet-Icon.THIN_DRAG_HANDLE"/>
</div>
<t t-if="cf.rule.type==='IconSetRule'">
<div
class="o-cf-drag-handle h-100 position-absolute d-flex align-items-center o-button-icon">
<t t-call="o-spreadsheet-Icon.THIN_DRAG_HANDLE"/>
class="o-cf-preview-icon d-flex justify-content-around align-items-center me-3 bg-white border">
<t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.upper].template}}"/>
<t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.middle].template}}"/>
<t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.lower].template}}"/>
</div>
<t t-if="cf.rule.type==='IconSetRule'">
<div
class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2 bg-white border">
<t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.upper].template}}"/>
<t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.middle].template}}"/>
<t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.lower].template}}"/>
</div>
</t>
<t t-else="">
<div
t-att-style="getPreviewImageStyle(cf.rule)"
class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2 border">
123
</div>
</t>
<div class="o-cf-preview-description">
<div class="o-cf-preview-ruletype">
<div class="o-cf-preview-description-rule o-fw-bold text-truncate">
<t t-esc="getDescription(cf)"/>
</div>
</div>
<div class="o-cf-preview-range text-truncate" t-esc="cf.ranges"/>
</t>
<t t-else="">
<div
t-att-style="getPreviewImageStyle(cf.rule)"
class="o-cf-preview-icon d-flex justify-content-around align-items-center me-3 flex-shrink-0 border">
123
</div>
<div class="o-cf-delete">
<div
class="o-cf-delete-button o-button-icon"
t-on-click.stop="(ev) => this.deleteConditionalFormat(cf, ev)"
title="Remove rule">
<t t-call="o-spreadsheet-Icon.TRASH_FILLED"/>
</t>
<div class="o-cf-preview-description me-3 overflow-auto">
<div class="o-cf-preview-ruletype">
<div class="o-cf-preview-description-rule o-fw-bold text-truncate">
<t t-esc="getDescription(cf)"/>
</div>
</div>
<div class="o-cf-preview-range text-truncate" t-esc="cf.ranges"/>
</div>
<div class="o-cf-delete ms-auto">
<div
class="o-cf-delete-button o-button-icon"
t-on-click.stop="(ev) => this.deleteConditionalFormat(cf, ev)"
title="Remove rule">
<t t-call="o-spreadsheet-Icon.TRASH_FILLED"/>
</div>
</div>
</div>
</t>
Expand Down
Loading