mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 01:26:37 +08:00
fix: according to graphite-app's suggestions
This commit is contained in:
@@ -150,17 +150,12 @@ const alignActionGroup = {
|
||||
) ?? textAlignConfigs[0];
|
||||
const update = (textAlign: TextAlign) => {
|
||||
chain
|
||||
.pipe(
|
||||
(ctx, next) => {
|
||||
ctx.selectedModels.forEach(model => {
|
||||
ctx.std.host.doc.updateBlock(model, {
|
||||
textAlign: ctx.textAlign,
|
||||
});
|
||||
});
|
||||
return next();
|
||||
},
|
||||
{ selectedModels, textAlign }
|
||||
)
|
||||
.pipe((ctx, next) => {
|
||||
selectedModels.forEach(model => {
|
||||
ctx.std.host.doc.updateBlock(model, { textAlign });
|
||||
});
|
||||
return next();
|
||||
})
|
||||
.run();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user