Skip to content

Commit f0d5bf8

Browse files
authored
Merge pull request #577 from 1CRM/fix-filled-inputs
Enhance SCSS styles for editable fields to match text input padding in edit mode
2 parents c84cf36 + 32ca5ed commit f0d5bf8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

packages/oceanfront/src/scss/_fields.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,16 @@
950950
}
951951
}
952952
}
953+
954+
// Select, date, etc. use content-text; match text input vertical padding in edit mode.
955+
&.of--mode-editable
956+
> .of-field-main
957+
> .of-field-body
958+
> .of-field-inner
959+
> .of-field-content-text:not(:has(.of-field-input)) {
960+
padding: calc(var(--field-v-pad) / 2) var(--field-h-pad) var(--field-v-pad);
961+
box-sizing: border-box;
962+
}
953963
}
954964
}
955965

0 commit comments

Comments
 (0)