Merge pull request #37584 from Vibhuti410/fix-grid-row-flex-alignment
fix: prevent red validation border from disappearing in editable grid rows
This commit is contained in:
commit
0e4338c0e5
2 changed files with 7 additions and 4 deletions
|
|
@ -1033,7 +1033,7 @@ export default class GridRow {
|
|||
let is_focused = false;
|
||||
|
||||
var $col = $(
|
||||
`<div class="col grid-static-col col-xs-${colsize} ${add_class}" style="${add_style}"></div>`
|
||||
`<div class="col grid-static-col flex col-xs-${colsize} ${add_class}" style="${add_style}"></div>`
|
||||
)
|
||||
.attr("data-fieldname", df.fieldname)
|
||||
.attr("data-fieldtype", df.fieldtype)
|
||||
|
|
@ -1095,7 +1095,9 @@ export default class GridRow {
|
|||
return out;
|
||||
});
|
||||
|
||||
$col.field_area = $('<div class="field-area"></div>').appendTo($col).toggle(false);
|
||||
$col.field_area = $('<div class="field-area flex flex-grow-1"></div>')
|
||||
.appendTo($col)
|
||||
.toggle(false);
|
||||
$col.static_area = $('<div class="static-area ellipsis"></div>').appendTo($col).html(txt);
|
||||
|
||||
// set title attribute to see full label for columns in the heading row
|
||||
|
|
|
|||
|
|
@ -309,8 +309,8 @@
|
|||
border-radius: 0px;
|
||||
border: 0px;
|
||||
padding-top: 10px;
|
||||
padding-bottom: calc(var(--padding-md) - 3px);
|
||||
height: auto;
|
||||
padding-bottom: 10px;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.link-btn {
|
||||
|
|
@ -430,6 +430,7 @@
|
|||
.frappe-control {
|
||||
margin-bottom: 0px !important;
|
||||
position: relative;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.col-sm-6 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue