feat: allow fields to not wrap cell content (#5128)

This commit is contained in:
Richard Shiue
2024-04-13 16:48:28 +08:00
committed by GitHub
parent 891fd16a0c
commit 8947a89a24
54 changed files with 660 additions and 475 deletions

View File

@ -58,6 +58,7 @@ class FieldSettingsBackendService {
required String fieldId,
FieldVisibility? fieldVisibility,
double? width,
bool? wrapCellContent,
}) {
final FieldSettingsChangesetPB payload = FieldSettingsChangesetPB.create()
..viewId = viewId
@ -71,6 +72,10 @@ class FieldSettingsBackendService {
payload.width = width.round();
}
if (wrapCellContent != null) {
payload.wrapCellContent = wrapCellContent;
}
return DatabaseEventUpdateFieldSettings(payload).send();
}
}