必填字段label添加星号

This commit is contained in:
WEB许何哲\xuhez
2023-08-16 11:22:50 +08:00
parent 42066865be
commit 1747f38bca

View File

@@ -1,15 +1,22 @@
.test_model {
display: flex !important;
}
.test_model>.o_form_label {
.test_model > .o_form_label {
margin-left: 20px;
margin-right: 0px !important;
white-space: nowrap;
}
.o_form_label.o_field_invalid::after {
div:has(.o_required_modifier)>label::before {
content: '*' !important;
color: red !important;
padding: 0 4px !important;
vertical-align: top !important;
font-size: 1.5rem !important;
}
display: inline !important;
}
.o_required_modifier {
display: flex !important;
}