feat: Add data-type='image' to image sign item templates and refine placeholder CSS specificity.
This commit is contained in:
parent
d57c6a90bb
commit
c7b48e0afc
@ -13,7 +13,7 @@
|
||||
}
|
||||
|
||||
.o_sign_sign_item[data-type="image"] .o_placeholder,
|
||||
.o_sign_sign_item .o_placeholder {
|
||||
.o_sign_sign_item[data-type="image"] .o_placeholder {
|
||||
font-size: 12px !important;
|
||||
color: #666 !important;
|
||||
font-weight: normal !important;
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<t t-if="type == 'image'" t-call="sign.imageSignItem"/>
|
||||
</xpath>
|
||||
<xpath expr="//div[@t-if="type == 'selection'"]" position="after">
|
||||
<div t-if="type == 'image'" t-att-title="role" t-attf-class="{{classes}} o_sign_sign_item" t-att-style="style" t-att-data-value="value" style="text-align:center; display:flex; align-items:center; justify-content:center;">
|
||||
<div t-if="type == 'image'" t-att-title="role" t-attf-class="{{classes}} o_sign_sign_item" t-att-style="style" t-att-data-value="value" t-att-data-type="'image'" style="text-align:center; display:flex; align-items:center; justify-content:center;">
|
||||
<input type="file" accept="image/*" class="o_sign_image_upload_input" style="display:none"/>
|
||||
<t t-if="value">
|
||||
<img t-att-src="value" style="max-width:100%; max-height:100%; object-fit:contain;"/>
|
||||
@ -21,7 +21,7 @@
|
||||
</t>
|
||||
|
||||
<t t-name="sign.imageSignItem">
|
||||
<div t-att-title="role" t-attf-class="{{classes}} o_sign_sign_item" t-att-data-id="id" t-att-style="style" style="text-align:center; display:flex; align-items:center; justify-content:center;">
|
||||
<div t-att-title="role" t-attf-class="{{classes}} o_sign_sign_item" t-att-data-id="id" t-att-style="style" t-att-data-type="'image'" style="text-align:center; display:flex; align-items:center; justify-content:center;">
|
||||
<div class="sign_item_body">
|
||||
<t t-if="value">
|
||||
<img t-att-src="value" style="max-width:100%; max-height:100%; object-fit:contain;"/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user