mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: allow fields to not wrap cell content (#5128)
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user